stale-dog-42973
06/24/2023, 2:31 PMwhoami
endpoint works for APIs. In the docs, it mentions various ways to call the endpoint (cookie, authorization header, X-Session-Token, or some combination of these?). Im very confused on what to use (the Cookie header parameter in the docs has different examples, one saying to use ory_session
, another one says to use ory_kratos_session
). I am logging in using postman, which sets a number of different cookies. Concretely, i suppose, my questions are:
1. Where do i get the X-Session-Token
from? (as the docs say it's mandatory when calling whoami
from any non-browser)
2. Which of the cookies do i need to set? (the docs mention the ory_session, but that does not seem to be working for me. Postman sets a csrf token, an ory_session_projectname cookie, and a _cflb which i have no idea what it does)stale-dog-42973
06/24/2023, 2:43 PMstale-dog-42973
06/24/2023, 2:45 PMory_session_projectname
and the _cflb
cookies from postman after logging in. Is it fine to just send these two from frontend to backend?rich-thailand-93889
06/24/2023, 2:57 PMstale-dog-42973
06/24/2023, 3:02 PM