Can I able to retrive the logged in user info by using session cookies ? #12737
Unanswered
Mathusoothanan-k
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone ;)
In authentik, I'm logged in as a user. The logged in user's session was stored in my browser. I need to get the user's detail by using the session stored in my browser. Is there any way to get the logged in user's detail ???
I'm currently trying using the below method ;
In authentik, there is my session cookie stored in my session they are;
{
"sid": "***",
"iss": "authentik",
"sub": "zx6098728d7499363df14d00748963104b33a32rdsthy776r4ware34d2c01",
"authenticated": true,
"acr": "goauthentik.io/core/default"
}
The "sub" key contains the logged in user's UID, so I need to get the present user's detail by using only UID not by the UUID and pk (:id) .
Beta Was this translation helpful? Give feedback.
All reactions