victorious-eye-56567
10/15/2023, 2:20 PMory_st_7ek8qeAbffehkb9dGFoz1dWNZeVQuatd
.
I am having trouble finding any documentation on how to setup my access rule to verify the session token.
I can see bearer_token and cookie_session but it does not seem to be what I need.
Which authenticator should I use ?victorious-eye-56567
10/15/2023, 3:58 PMbearer_token
that I had to used.
I struggled for a long time because I was very unsure it was the way to go and I had to specify token_from
and forward_http_headers
.
Here is how my authorization looks like now that it works:
bearer_token:
enabled: true
config:
check_session_url: <http://kratos-public:80/sessions/whoami>
token_from:
header: X-Session-Token
preserve_path: true
extra_from: "@this"
subject_from: "identity.id"
forward_http_headers:
- X-Session-Token