[0.39.4] cookie_session not sending Cookie header to check endpoint #1000
-
Hello! I'm new to using OathKeeper and was experimenting with it to serve as the ingress for my new (internal) project. However, while trying to test locally with the following config I keep getting an unauthorised error: version: v0.39.4
access_rules:
matching_strategy: regexp
repositories:
- "file://./rules/ui.yaml"
- "file://./rules/kratos_.yaml"
authenticators:
noop:
enabled: true
cookie_session:
enabled: true
config:
check_session_url: http://localhost:4433/sessions/whoami # Kratos public API
extra_from: "@this"
subject_from: identity.id
only:
- ory_kratos_session
authorizers:
allow:
enabled: true
mutators:
noop:
enabled: true
errors:
handlers:
json:
enabled: true
config:
verbose: true I've confirmed via Oathkeeper's logs that it is getting the cookie header correctly, but doesn't appear to be sending it to check_session_url, as I can confirm from Kratos' logs:
I am running Kratos with the Any advice would be appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @BradleyChatha
|
Beta Was this translation helpful? Give feedback.
Hello @BradleyChatha
Apologies for the late answer! I hope you are not still stuck on this.
Based on the information provided, there are a few things you could check:
Configuration of Ory Oathkeeper: Ensure that your Ory Oathkeeper configuration is correct. The access_rules, authenticators, authorizers, and mutators should be properly set up. For example, the cookie_session authenticator should be enabled and correctly configured to point to Ory Kratos' /sessions/whoami API. Here is an example of how it should look like: