Skip to content

Commit

Permalink
fix: oathkeeper cookie rules (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntheile committed Mar 30, 2023
1 parent 57d2726 commit 88665da
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions dev/ory/oathkeeper_rules.yaml
Expand Up @@ -2,7 +2,7 @@
upstream:
url: "http://e2e-tests:4012"
match:
url: "<(http|https)>://<[a-zA-Z0-9-.:]+>/auth/clearCookies"
url: "<(http|https)>://<[a-zA-Z0-9-.:]+>/auth/<(clearCookies|login|logout)>"
methods: ["GET", "POST", "OPTIONS"]
authenticators:
- handler: anonymous
Expand All @@ -11,26 +11,6 @@
mutators:
- handler: noop

- id: cookie-auth-routes
upstream:
url: "http://e2e-tests:4012"
match:
url: "<(http|https)>://<[a-zA-Z0-9-.:]+>/auth/<(login|logout)>"
methods: ["GET", "POST", "OPTIONS"]
authenticators:
- handler: cookie_session
config:
check_session_url: http://kratos:4433/sessions/whoami
preserve_path: true
preserve_query: true
subject_from: identity.id
extra_from: identity.traits
- handler: anonymous
authorizer:
handler: allow
mutators:
- handler: noop

- id: apollo-playground-ui
upstream:
url: "http://e2e-tests:4012"
Expand Down

0 comments on commit 88665da

Please sign in to comment.