question

ZhiyuanZhang-2086 avatar image
0 Votes"
ZhiyuanZhang-2086 asked ·

Any document/resource to help us understand how cookies works in AAD authentication? (OAuth))

I am interested in how AAD use the cookies. There is the link describes cookies definition for AAD B2C.
https://docs.microsoft.com/bs-latn-ba/azure/active-directory-b2c/cookie-definitions
But this link does not include all of the cookies I have seen from my browser. Maybe this link is all about B2C only. Do you have any resource (article or url) to help me understand how Azure AD works with cookies?
It would be great you have some video training session for this topic.

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

FrankHuMSFT-4825 avatar image
0 Votes"
FrankHuMSFT-4825 answered ·

Hey @ZhiyuanZhang-2086,

Which cookies are you referring to? It depends on which flow you're using, the EasyAuth module for example for app services utilizes cookies much more than the oauth2/oidc/implicit flows.

I suggest taking a look at chris gillium's blog regarding the easy auth module's cookies : https://cgillum.tech/category/easy-auth/

In regards to OAuth2 and OIDC, the main resources for learning about how the cookies work would be the official MSFT documentation regarding how the flows work. This can be found here : https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-scenarios


Specifically for SSO which is typically when cookies are most interesting, I suggest taking a look at the Seamless SSO deep dive and technical docs : https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso-how-it-works
https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/what-is-single-sign-on


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much, Frank.
I will read through them.

0 Votes 0 ·