Overview
Microsoft Azure AD (now rebranded as Microsoft Entra ID) is a cloud-based identity and access management service that provides single sign-on (SSO), multi-factor authentication, and directory services for web applications. When detected on websites, Azure AD handles user authentication flows — allowing visitors to sign in with their organizational Microsoft accounts or personal Microsoft accounts. It is the identity backbone for Microsoft 365 applications and is widely adopted by enterprise web applications for workforce and customer-facing (B2C) authentication.
What This Script Does
Azure AD authentication integrates through the Microsoft Authentication Library (MSAL) and OAuth 2.0/OpenID Connect protocol flows.
- Scripts loaded: The Microsoft Authentication Library (
msal-browser.jsfromalcdn.msauth.netor bundled into the application) handles token acquisition, refresh, and session management. The login flow redirects tologin.microsoftonline.comfor credential entry. - Authentication flow: Users click a sign-in button, triggering either a redirect to
login.microsoftonline.comor a popup window. After entering credentials and completing any multi-factor authentication, Azure AD returns an ID token and access token to the application. - Cookies set:
- Session cookies on
login.microsoftonline.comfor maintaining the authentication state during the sign-in flow ESTSAUTH,ESTSAUTHPERSISTENT— Microsoft authentication cookies that maintain SSO state across Microsoft services, enabling seamless sign-in without re-entering credentialsbuid,fpc— Azure AD cookies for browser and device identification during the login flow- First-party session cookies set by the application to maintain the authenticated state after login
- Session cookies on
- Token storage: MSAL stores access tokens and refresh tokens in the browser's
sessionStorageorlocalStorage(configurable) to maintain the session and silently refresh tokens without user interaction. - No tracking: Azure AD authentication scripts do not track browsing behavior or set advertising cookies. All data processing is related to identity verification and session management.
Consent & Compliance
Microsoft Azure AD falls under the essential consent category.
Under GDPR and ePrivacy, authentication cookies and token storage are strictly necessary for providing the sign-in service explicitly requested by the user. The ePrivacy Directive exempts cookies that are essential for a service the user has asked for. GDPR legal basis is Article 6(1)(b) — processing necessary for the performance of a contract (user account access). The ESTSAUTH cookies on login.microsoftonline.com maintain SSO state and are integral to the authentication flow.
Under CCPA/CPRA, identity data processed during authentication (email, name, directory attributes) is collected to provide the requested sign-in service. This does not constitute a "sale" or "sharing" of personal information for advertising purposes.
Microsoft Entra ID offers data residency options for EU tenants and operates under Microsoft's data processing addendum.
Should You Block This Without Consent?
No. Azure AD is an authentication service that users explicitly invoke to sign into the website. Blocking it would prevent users from logging in and accessing their accounts. All cookies set are directly related to the authentication flow and session management, qualifying as strictly necessary under all major privacy frameworks.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
microsoftonline.comEssentiallogin.microsoftonline.comEssentialFrequently Asked Questions
Does Microsoft Azure AD require cookie consent?
No. Azure AD, now Microsoft Entra ID, is an authentication service users explicitly invoke. Its cookies — ESTSAUTH, ESTSAUTHPERSISTENT, and session tokens — are strictly necessary for the login service. GDPR Article 6(1)(b) covers this under contract performance; ePrivacy's strictly necessary exemption applies.
What cookies does Microsoft Azure AD set?
ESTSAUTH and ESTSAUTHPERSISTENT on login.microsoftonline.com maintain SSO state across Microsoft services. The buid and fpc cookies support browser identification during login. MSAL stores access and refresh tokens in sessionStorage or localStorage. Scripts load from alcdn.msauth.net; login redirects go to login.microsoftonline.com.
How does ConsentStack treat Microsoft Azure AD?
ConsentStack classifies Azure AD as essential. Because all authentication cookies are strictly necessary for the user-requested sign-in service, ConsentStack does not apply consent gating. The MSAL library and login flows operate without restriction across all consent states, ensuring authenticated access remains uninterrupted.
Other Microsoft Products
Related Vendors
Manage consent for Microsoft Azure AD
ConsentStack automatically detects and manages Microsoft Azure AD trackers so your site stays compliant with global privacy regulations.