Open logan-hcg opened 10 months ago
No response
The default is sub:
sub
https://github.com/ory/oathkeeper/blob/4d61221f9d0c0070a2b5a6fb96295caf156279ee/pipeline/authn/authenticator_bearer_token.go#L115
but documentation shows it it subject:
subject
https://www.ory.sh/docs/oathkeeper/pipeline/authn#bearer_token
bearer_token
200
{"subject": "test-subject"}
Subject is empty instead of expected test-subject. Changing the response to {"sub": "test-subject"} returns the proper subject value.
test-subject
{"sub": "test-subject"}
v0.40.6
None
Preflight checklist
Ory Network Project
No response
Describe the bug
The default is
sub
:https://github.com/ory/oathkeeper/blob/4d61221f9d0c0070a2b5a6fb96295caf156279ee/pipeline/authn/authenticator_bearer_token.go#L115
but documentation shows it it
subject
:Reproducing the bug
bearer_token
authenticator200
and the body{"subject": "test-subject"}
Subject is empty instead of expected
test-subject
. Changing the response to{"sub": "test-subject"}
returns the proper subject value.Relevant log output
No response
Relevant configuration
No response
Version
v0.40.6
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response