Search code examples
ruby-on-railsazure-active-directoryaccess-token

Cookie generated after login with Azure AD


Every time I login to my application using Azure AD, it generates me a Cookie ... I would like to know if this Cookie generated is my access token!

enter image description here

Can you help me with this? I searched in several places, but I didn't find the answer!


Solution

  • The easiest way is to capture the cookie, and then use https://jwt.ms/ to parse it.

    If you do not see the result of decoding the token, it is not your access token. Conversely, if you can correctly obtain the decoded token and verify it correctly, it means that it is your access token. See here.