-
Hi! First of all, thanks for making this. Second, apologies if I sound newbie-ish. I'm building a web application using Go and I'm trying to see if Kratos would fit my needs. Skimming through the documentation and through other resources didn't satisfied my curiosity. My question is:
Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @nedpals, Thanks for reaching out :) Yes you use the user ID for that. This can easily be done in your application using a middleware to retrieve the user ID from kratos using its cookie https://www.ory.sh/kratos/docs/reference/api#check-who-the-current-http-session-belongs-to Retrieving an Identity can also be done using its ID https://www.ory.sh/kratos/docs/reference/api#get-an-identity |
Beta Was this translation helpful? Give feedback.
Hi @nedpals,
Thanks for reaching out :)
Yes you use the user ID for that. This can easily be done in your application using a middleware to retrieve the user ID from kratos using its cookie https://www.ory.sh/kratos/docs/reference/api#check-who-the-current-http-session-belongs-to
Retrieving an Identity can also be done using its ID https://www.ory.sh/kratos/docs/reference/api#get-an-identity