You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My remote_json endpoint expect subject to be not null, but when i send head request to this endpoint, i am getting 400 from remote_json service, because oathkeeper does not extracted the id
Send head request to this url localhost:4456/decisions/test with valid cookie. When i chagne my request from HEAD to GET. I ve got expected 200 result
Preflight checklist
Ory Network Project
goofy-varahamihira-0cacga6s4t
Describe the bug
The cookie_session authenticator is not able to extract subject id if method is HEAD
Reproducing the bug
I have following configuration for cookie_session
cookie_session:
enabled: true
config:
preserve_path: true
extra_from: "@this"
additional_headers:
accept: application/json
check_session_url: https://goofy-varahamihira-0cacga6s4t.projects.oryapis.com/sessions/whoami
subject_from: identity.id
And this is my rule
match:
url: http://<127.0.0.1|localhost>:4456/test
methods: ["HEAD", "GET"]
authenticators:
authorizer:
handler: remote_json
mutators:
my remote json payload configuration is:
payload: |
{
"subject": "{{ print .Subject }}",
"resource": "{{ print .MatchContext.URL }}",
"token": "{{ .MatchContext.Header.Get "X-Api-Key" }}"
}
My remote_json endpoint expect subject to be not null, but when i send head request to this endpoint, i am getting 400 from remote_json service, because oathkeeper does not extracted the id
Send head request to this url localhost:4456/decisions/test with valid cookie. When i chagne my request from HEAD to GET. I ve got expected 200 result
Relevant log output
Relevant configuration
Version
0.40.6
On which operating system are you observing this issue?
Windows
In which environment are you deploying?
Binary
Additional Context
No response
The text was updated successfully, but these errors were encountered: