cuddly-plastic-72839
11/14/2022, 3:03 PMauthenticators:
- handler: cookie_session
- handler: bearer_token
Now I want if a Bearer Token arrives, that a mutator translates it to a cookie, so I've configured:
mutators:
- handler: noop
- handler: cookie
Unfortunately this doesn't seem to work.. no cookie arrives at the destination. Am I doing something wrong?cuddly-plastic-72839
11/14/2022, 3:09 PMmutators:
noop:
enabled: true
cookie:
enabled: true
config:
cookies:
ory_kratos_session: "{{ print .Subject }}"
cuddly-plastic-72839
11/14/2022, 3:09 PMauthenticators:
anonymous:
enabled: true
config:
subject: guest
cookie_session:
enabled: true
config:
check_session_url: <http://kratos:4433/sessions/whoami>
preserve_path: true
extra_from: "@this"
subject_from: "identity.id"
only:
- ory_kratos_session
bearer_token:
enabled: true
config:
check_session_url: <http://kratos:4433/sessions/whoami>
preserve_path: true
extra_from: "@this"
subject_from: "identity.id"