Skip to content

Keto authorization with Oathkeeper #962

Answered by t03r1cht
t03r1cht asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to @gen1us2k which found a workaround for this problem.
This problem only seems to happen when using Ory Cloud for authentication. More details on this topic can be found at #952

For the workaround you extend the cookie_session config to include the following headers:

  cookie_session:
    enabled: true
    config:
      check_session_url: http://host.docker.internal:4000/.ory/sessions/whoami
      preserve_path: true
      extra_from: "@this"
      subject_from: "identity.id"
      additional_headers:
        accept: application/json
        accept-encoding: identity

Oathkeeper will now successfully populate the Keto authorization request when using {{ print .Subject }}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by t03r1cht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant