Microsoft Azure AD

Microsoft Azure AD

Microsoft Azure AD (now Microsoft Entra ID) is a cloud identity and access management service for single sign-on and user authentication on websites. Scripts load the Microsoft Authentication Library to handle OAuth flows, display login prompts, and manage access tokens. Stores authentication cookies and session tokens to maintain user login state across visits.

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.js from alcdn.msauth.net or bundled into the application) handles token acquisition, refresh, and session management. The login flow redirects to login.microsoftonline.com for credential entry.
  • Authentication flow: Users click a sign-in button, triggering either a redirect to login.microsoftonline.com or 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.com for 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 credentials
    • buid, 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
  • Token storage: MSAL stores access tokens and refresh tokens in the browser's sessionStorage or localStorage (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.

Is Microsoft Azure AD GDPR compliant?

Microsoft Azure AD's trackers are classified as essential (strictly necessary), so they are generally exempt from prior consent under the GDPR. You should still list them in your cookie policy and privacy notice so visitors know they are there.

Visit website

Consent Categories

Also Known As

Microsoft Entra IDAzure Active DirectoryMicrosoft SSOMSALMicrosoft authenticationAzure AD B2C

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (2)

microsoftonline.comEssential

microsoftonline.com is an essential domain operated by Microsoft Azure AD, used to keep the site working, including security, load balancing, and sessions.

login.microsoftonline.comEssential

login.microsoftonline.com is an essential domain operated by Microsoft Azure AD, used to keep the site working, including security, load balancing, and sessions.

Cookies Microsoft Azure AD Sets (1)

x-ms-cpim-trans

Microsoft Entra ID (Azure AD B2C) auth-flow correlation cookie set during sign-in.

Frequently Asked Questions

Other Microsoft Products

Bing Ads
Bing Ads
Microsoft Advertising (Bing Ads) is the advertising platform for search campaigns on Bing, Yahoo, and partner networks. The Universal Event Tracking (UET) tag fires on advertiser sites to record conversions and build remarketing audiences. Data flows into the Microsoft Advertising dashboard for campaign reporting and bid optimization.
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
Bing Webmaster Tools
Bing Webmaster Tools
Sets a meta tag or BingSiteAuth.xml file to confirm site ownership with Microsoft Bing. The verification asset collects no personal data; Bing then provides search performance, crawl error, and keyword analytics accessible only through authenticated Webmaster Tools dashboard sessions.
LinkedIn
LinkedIn
LinkedIn Insight Tag is a conversion tracking and audience analytics tool for LinkedIn advertising. Scripts set a first-party cookie and send page view and conversion events to LinkedIn's servers. Data supports campaign attribution, demographic reporting on site visitors, and LinkedIn retargeting audience creation.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Microsoft Power Apps
Microsoft Power Apps
Microsoft Power Apps is a low-code application development platform that enables embedded business applications on websites. Scripts load custom app interfaces from Microsoft's cloud, render form controls and data views, and connect to backend data sources through Power Platform connectors. Sets session cookies to maintain application state and user authentication.
Microsoft Power Automate
Microsoft Power Automate
Microsoft Power Automate is a workflow automation platform that connects to websites through embedded triggers and action widgets. Scripts load form interfaces, approval flows, and automated process components that interact with Microsoft's cloud services. Sets session cookies to authenticate users and maintain workflow state during multi-step automated processes.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Microsoft Viva
Microsoft Viva
Microsoft Viva is an employee experience platform that surfaces on websites through embedded engagement and learning modules. Scripts load content feeds and knowledge cards from Microsoft's cloud infrastructure. Sets authentication cookies for user identity and personalized workplace content delivery.
Power BI
Power BI
Power BI is Microsoft's business intelligence and data visualization platform. Its embedded scripts render interactive dashboards and reports within web pages, loading data visualizations through iframes or JavaScript APIs. Embedded reports may set authentication cookies and make requests to Microsoft's cloud services.
Xandr
Xandr
Xandr scripts serve programmatic display and video ads by placing cookies, collecting audience data, and participating in real-time bidding auctions. Scripts match visitors against audience segments and transmit behavioral data to Microsoft's advertising marketplace for targeting and measurement.

Related Vendors

Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Apple Pay
Apple Pay
Apple Pay is a digital payment service that enables secure checkout on websites through Safari and supported browsers. Scripts load the Apple Pay button, present the payment sheet, and process tokenized card transactions without exposing raw payment details to the merchant. Handles biometric authentication via Touch ID or Face ID for payment authorization.
Azure CDN
Azure CDN
Azure CDN is Microsoft's content delivery network that caches and serves website assets from globally distributed edge servers. Delivers HTML, CSS, JavaScript, images, and media to visitors from the nearest edge location to reduce latency. No tracking or advertising functionality — operates purely as transparent content delivery infrastructure.
Sign in with Apple
Sign in with Apple
Sign in with Apple is an OAuth-based authentication service that lets users log into websites using their Apple ID with built-in privacy features. Scripts load the Apple authentication button and handle secure token exchange. Supports email relay to hide user email addresses from websites, and stores session tokens to maintain login state.
Sign in with Google
Sign in with Google
Sign in with Google is an OAuth-based authentication service that enables users to log into websites using their Google account credentials. Scripts load the Google Identity Services library, display sign-in buttons, and handle token exchange for secure authentication. Stores session tokens and authentication cookies to maintain login state across page visits.

Manage consent for Microsoft Azure AD

ConsentStack automatically detects and manages Microsoft Azure AD trackers so your site stays compliant with global privacy regulations.