Table of Contents
At a glance
Don't have the time to read the entire post? Our human writers will be sad, but we understand. Summarize the post with your preferred LLM here instead.
This tutorial was written by Kumar Harsh, a software developer and devrel enthusiast who loves writing about the latest web technology. Visit Kumar's website to see more of his work!
Adding a Model Context Protocol (MCP) server to your Microsoft Entra ID setup leaves your app registrations, Conditional Access policies, and claims-mapping policies exactly as they are. Entra keeps authenticating your users, and the only change on its side is one new app registration.
The July 2026 revision of the MCP authorization spec expects a remote MCP server to sit behind an OAuth 2.1 authorization server that publishes protected resource metadata, binds each token to one server through resource indicators, and lets clients like Claude Code or Cursor register themselves through Dynamic Client Registration (DCR) or Client ID Metadata Documents (CIMD). An Entra admin creates every app registration by hand, and Microsoft documents that Entra ID publishes no RFC 7591 registration endpoint. Descope's Bring Your Own Auth for MCP provides that authorization server in front of your MCP server and federates every login back to Entra, so you can skip both building the OAuth layer yourself and migrating your tenant to a new identity provider.
At a glance
Descope's Bring Your Own Auth for MCP acts as the OAuth authorization server for an MCP server and federates every login to Microsoft Entra ID over OIDC.
The only change in Entra is one new app registration. Existing app registrations, Conditional Access policies, and claims-mapping policies stay as they are.
Entra still evaluates Conditional Access on every sign-in, before Descope issues any token, and the result appears in Entra's own sign-in logs.
MCP clients register themselves with Descope through CIMD or DCR, which Entra doesn't offer, and each tool gets its own scope on the consent screen.
Entra security groups map to Descope roles, and an admin can revoke one agent's access in Descope without touching the user's Entra account.
How the pieces fit together
This setup fits two common cases:
Exposing an Entra-backed line-of-business app to an IDE or an agent without a second user directory
Opening an MCP server to partner agents while Conditional Access keeps enforcing its rules at sign-in
The tutorial runs that setup end to end, with an authorization layer in front of a working MCP server, a real client signing in through Entra, and one agent's access revoked while the Entra account stays untouched. For a visual overview first, Descope's Bring Your Own Auth walkthrough video demonstrates the same architecture. If your users live in Okta, Auth0 [link: Auth0 entry in this series, unpublished], or Amazon Cognito instead, other articles in this series cover the same setup for each.
Building that authorization layer starts with a Python MCP server that exposes two tools of different sensitivity. You then federate Descope to your Entra ID tenant over OpenID Connect (OIDC), confirm that Conditional Access still applies, connect Claude Code, and decode the access token where it reaches your server. Finally, you revoke one agent's access and read the audit trail. Four parties take part: Claude Code calls tools on a user's behalf, your MCP server holds those tools, Descope issues the access tokens, and Entra ID authenticates the person, evaluates Conditional Access, and reports their group memberships.

Entra evaluates Conditional Access in step 4, before Descope receives anything, so a blocked sign-in never reaches the consent screen. Entra reports groups as object IDs, and Descope maps those IDs to roles in step 5. A later connection from the same client skips registration, since Claude Code already holds the client_id it registered, and Entra may skip the password prompt if the user's session is still active. Conditional Access still evaluates on that request, and Descope re-applies its group mapping on every token it issues. None of Entra's tokens reach your MCP server. Descope consumes the ID token, and the server's only outside call is to Descope's public keys.
Prerequisites
To follow along, you'll need:
Python 3.11 or later (required by FastMCP 4.2 and later)
A Descope account (the Free Forever plan covers this tutorial)
A Microsoft Entra ID tenant with Microsoft Entra ID P1 (a trial works), since both Conditional Access and assigning groups to an application require it, plus an admin account that can register applications, manage enterprise applications, and manage Conditional Access policies (Cloud Application Administrator and Conditional Access Administrator cover all three)
Two security groups named
Support LeadsandSupport Agents, created under Entra ID > Groups > All groups > New group, each with one test user as a member. Set the Email property on each test user, since Entra includes theemailclaim in the ID token only for users that have a mail address.Claude Code installed locally
An HTTPS URL for your server, such as a Cloudflare Tunnel pointing at your machine
Building a remote MCP server
Acme Tickets, the demo server, is a minimal support desk with one low-risk tool and one sensitive one. Anyone on the support team could reasonably read a ticket with get_ticket, but close_ticket modifies data. That contrast is what the scopes later in the tutorial are built around. The acme-tickets-mcp repo has the full code, including the .env.example the server expects.
FastMCP and python-dotenv are the only dependencies:
pip install "fastmcp>=4" python-dotenv
The server fits in a single server.py file.
import logging
import os
from dotenv import load_dotenv
from fastmcp import FastMCP
from fastmcp.server.auth import require_scopes
from fastmcp.server.auth.providers.descope import DescopeProvider
from fastmcp.server.auth.providers.jwt import JWTVerifier
from fastmcp.server.dependencies import get_access_token
load_dotenv()
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("acme-tickets")
PROJECT_ID = os.environ["DESCOPE_PROJECT_ID"]
MCP_SERVER_URL = os.environ["MCP_SERVER_URL"] # e.g. https://tickets.example.com/mcp
ISSUER = f"https://api.descope.com/v1/apps/{PROJECT_ID}"
# Accept only tokens that Descope minted for this MCP server
verifier = JWTVerifier(
jwks_uri=f"https://api.descope.com/{PROJECT_ID}/.well-known/jwks.json",
issuer=ISSUER,
audience=MCP_SERVER_URL,
algorithm="RS256",
)
auth = DescopeProvider(
config_url=f"{ISSUER}/.well-known/openid-configuration",
base_url=os.environ["BASE_URL"],
scopes_supported=["tickets:read", "tickets:write"],
token_verifier=verifier,
)
mcp = FastMCP(name="Acme Tickets", auth=auth)
TICKETS = {
4821: {"title": "CSV export fails on large files", "status": "open", "fixed_in": "v2.14.1"},
4822: {"title": "SSO login loops on Safari", "status": "open", "fixed_in": None},
}
@mcp.tool(auth=require_scopes("tickets:read"))
def get_ticket(ticket_id: int) -> dict:
"""Fetch a support ticket by ID."""
ticket = TICKETS.get(ticket_id)
if ticket is None:
raise ValueError(f"Ticket {ticket_id} not found")
return {"id": ticket_id, **ticket}
@mcp.tool(auth=require_scopes("tickets:write"))
def close_ticket(ticket_id: int, resolution: str) -> dict:
"""Close a support ticket with a resolution note."""
ticket = TICKETS.get(ticket_id)
if ticket is None:
raise ValueError(f"Ticket {ticket_id} not found")
ticket["status"] = "closed"
claims = get_access_token().claims
logger.info("close_ticket id=%s user=%s scopes=%s", ticket_id, claims["sub"], claims.get("scope"))
return {"id": ticket_id, "status": "closed", "resolution": resolution}
if __name__ == "__main__":
mcp.run(transport="http", host="0.0.0.0", port=8000)
With FastMCP's Descope integration, the server itself stays small. DescopeProvider serves the protected resource metadata and turns away any request lacking a valid bearer token with a 401. The JWTVerifier checks that the issuer is your Descope project and the audience is this server's URL, so a token Descope minted for another MCP server in your project is refused with a 401. Scope enforcement happens per tool, with each require_scopes decorator naming the single scope its tool needs.
The official MCP Python SDK works too, and Descope's Python MCP SDK (descope-mcp) provides the same checks through validate_token() and require_scopes().
The protected resource metadata is the one piece of OAuth discovery your server owns, and it has to exist before any other auth step can work. An MCP client starts with only the server's URL. After its first 401, it reads this document to learn which authorization server protects the resource. The document names Descope, so the client registers and signs in there. Entra's discovery document lists no registration endpoint, which would leave a client that just received a 401 with nowhere to register.
The server reads three values from a .env file. Replace tickets.example.com with your own tunnel's hostname everywhere it appears in this tutorial, including the curl and claude mcp add commands. The project ID comes from your Descope project and is listed under Project > General in the console.
DESCOPE_PROJECT_ID=P2abc...
MCP_SERVER_URL=https://tickets.example.com/mcp
BASE_URL=https://tickets.example.com
Start the server with python server.py and point your tunnel at port 8000, so the HTTPS URL in MCP_SERVER_URL reaches the process. An unauthenticated request now returns a 401 whose header points at the metadata, and the metadata names the authorization server.
curl -i -X POST https://tickets.example.com/mcp
# Output:
# HTTP/2 401
# www-authenticate: Bearer resource_metadata="https://tickets.example.com/.well-known/oauth-protected-resource/mcp"
curl https://tickets.example.com/.well-known/oauth-protected-resource/mcp
# Output:
# {
# "resource": "https://tickets.example.com/mcp",
# "authorization_servers": ["https://api.descope.com/v1/apps/P2abc..."],
# "scopes_supported": ["tickets:read", "tickets:write"],
# "bearer_methods_supported": ["header"]
# }
Registering the MCP server in Descope
Next, give Descope a record of the server. Under Agentic Identity Hub > MCP Servers, create a server called Acme Tickets with https://tickets.example.com/mcp as its MCP Server URL, exactly the same value as MCP_SERVER_URL. Use a hostname that won't change, because you can't edit the field after the server is created. A quick tunnel gets a new address every time it restarts, and a changed address means creating a new server. Every access token Descope issues for Acme Tickets carries this URL in its aud claim, which binds the token to this server alone. Entra confirms who the user is, but Descope issues the token, because discovery, client registration, and consent all happen in Descope.
Under MCP Server Scopes, add one scope per tool:
Scope name | Consent description | Allow user to decline |
|---|---|---|
tickets:read | Read support tickets and their status | Off |
tickets:write | Close support tickets | On |
A new project has client registration switched off, and the MCP Client Registration section of the server page flags that with a warning. Its Project settings link opens Project > OIDC, where Enable CIMD and Enable DCR both need to be on before you save. Clients that support CIMD identify themselves through a metadata URL they host, and the rest fall back to DCR. An Entra app registration needs an admin to create it for each client, so a client like Claude Code or Cursor that shows up at connect time has no way to register there. DCR and CIMD in Descope supply that missing registration surface, and those clients register on first contact with no admin involved. The registration methods guide covers when to prefer each.
Create a template for Acme Tickets under Resources > Dynamic Registration Templates > Template. A template holds the user consent flow, which the next section edits, and the Always include all user authorization info on the token checkbox. Tick the checkbox so the access token carries the user's Descope roles, which makes the token easier to audit. Back on the server page, turn on Override project settings under MCP Client Registration, select the template under Associate with Template, and save.

The server needs no server-specific discovery URL. Token validation checks the project-level issuer and signature, and the aud claim set above ties a token to this MCP server.
Federating Descope to your Entra ID tenant over OIDC
A Descope tenant groups the users of one organization under one set of login settings. This tutorial creates a single tenant, Acme, whose OIDC SSO connection sends every Acme user to Entra to sign in. A tenant-level OIDC connection supports mapping Entra groups to Descope roles.
Choosing single-tenant or multi-tenant
The Supported account types setting on an Entra app registration decides who can sign in through it. Single tenant only admits users and guests of your own tenant. Multiple Entra ID tenants admits users from any Entra tenant, and a third option adds personal Microsoft accounts. Microsoft's supported account types reference lists all of them.
Choose single tenant when only your own organization's users reach the MCP server. An MCP server meant for external partner agents needs Multiple Entra ID tenants. A single-tenant registration turns partner users away at Microsoft's sign-in page with an AADSTS50020 error, which tells them their account doesn't exist in your tenant. The error appears on Entra's own page and the browser never returns to Descope, so the lockout leaves no failed request in your server logs and the partner's client only reports a failed authorization.
The walkthrough uses a single-tenant registration, since every test user lives in your tenant. Four details change for the multi-tenant variant:
The discovery URL becomes
https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration, theorganizationsauthority for work and school accounts from any tenant.The issuer in that document is a template that resolves to each signing-in user's tenant ID, so Descope's optional Issuer field stays empty.
A partner user's first sign-in triggers user or admin consent, which creates a service principal for Descope MCP in the partner's tenant, and the partner's own Conditional Access policies target that service principal.
Group object IDs are specific to each directory, so each partner admin assigns their groups to that service principal, and you add those IDs to the Roles & Groups mapping later.
Registering the app in Entra
Descope signs users in through an ordinary Entra app registration. Nothing about your existing registrations, claims-mapping policies, or Conditional Access policies changes. Start in the Microsoft Entra admin center:
Go to Entra ID > App registrations > New registration and name the app "Descope MCP".
Under Supported account types, select Single tenant only. Set the redirect URI platform to Web and the URI to Descope's generic OAuth callback,
https://api.descope.com/v1/oauth/callback. Descope redeems the authorization code from its own servers, so the app acts as a confidential web client, and the callback is where Entra returns that code. Select Register.On the Overview page, copy the Application (client) ID and the Directory (tenant) ID.
Under Certificates & secrets > Client secrets > New client secret, create a secret and copy its Value right away, since Entra never displays it again. Descope presents this secret when it calls Entra's token endpoint. A client secret keeps the tutorial short. Microsoft recommends certificates for production, and Descope's OIDC configuration supports Private Key JWT client authentication for that case.
Under Token configuration > Add groups claim, select Groups assigned to the application, leave the ID token property on Group ID, and select Add. Descope needs the claim to know which groups the user belongs to. Microsoft recommends this option for large organizations because JWTs cap the groups they emit at 200, and it keeps unrelated groups out of the token. This setting belongs to the Descope MCP registration alone, so tokens issued to your other apps stay as they are.
Next, open Entra ID > Enterprise apps, select Descope MCP, go to Users and groups > Add user/group, and assign
Support LeadsandSupport Agents. The groups claim lists only the groups assigned here.


Entra adds the User.Read permission to every new registration, and it covers the openid, profile, and email scopes Descope requests. If your tenant disables user consent, make sure to select Grant admin consent under API permissions.
Configuring SSO in Descope
Next, in Descope:
Open Tenants, create a tenant named Acme, open it, and add the email domain of your test users under Tenant Settings > Email domain (a test tenant's
onmicrosoft.comdomain works). Descope routes a user to a tenant's SSO connection by matching their email domain.In the tenant's Authentication Methods > SSO, choose OIDC and enter a provider name, the client ID and client secret from Entra, and the scopes
openid profile email. Put the Directory (tenant) ID you copied from the app registration's Overview page intohttps://login.microsoftonline.com/<entra-tenant-id>/v2.0/.well-known/openid-configuration, paste the result into Discovery URL, and click Fetch. Descope fills in the authorization, token, user info, and JWKS endpoints.If Fetch added further scopes such as
offline_access, trim the list back to the three above. Add the same domain under SSO Domains at the top of the SSO configuration, which Descope keeps separate from the tenant setting.In the Group Attribute Mapping section, set Groups claim name to
groups. The value is case-sensitive and has to match the claim name Entra emits, as the Descope OIDC guide explains.

Wiring Entra into the consent flow
Descope's default consent flow offers email and password login. Adding an SSO option sends people who connect to Acme Tickets to Entra to authenticate, and pointing the MCP server at the updated flow activates it:
Open the built-in Inbound apps - user consent flow (
inbound-apps-user-consent) in Flows.Double-click the Welcome Screen node, expand Buttons in the component library, and drag Sign in with SSO onto the screen. Give it a label, turn on Fill container, and select Done. The node gains an SSO output.
Use the blue + > Action menu, search for SSO, and place the SSO action on the canvas. The action needs no configuration of its own. Connect the Welcome Screen's SSO output to it, and connect the action's output to Is consent already granted?, the step that the OTP and social login paths also reach.
Descope's SSO button redirects the browser to Entra's authorization endpoint over OIDC, the same handoff Entra receives from any other registered app. Entra confirms who the person is, applies the tenant's Conditional Access policies, and returns an ID token as proof. Descope accepts that token as the result of the login.
The groups claim from Token configuration surfaces in that ID token as a list of group object IDs. To record exactly what Entra reported, add a Custom Claims action right after the SSO action in the consent flow. Give the step a descriptive name, set Key to entra_groups, switch the value to the dynamic type, and set Value to {{idpGroups}}, the flow context key Descope fills from Entra's response. Leave Context Key for Custom Claims Map and Set Custom Refresh Duration unset, since neither applies here. Place the step between the SSO action and Is consent already granted?, then save the flow.
The User Consent Flow dropdown on the Acme Tickets template already points at Inbound apps - user consent, so no further wiring is needed. Every access token then carries the user's Entra group IDs as Entra sent them, next to the Descope role that the group mapping produces.

Claims from a claims-mapping policy or other optional claims follow the same route. They arrive in the ID token, and Descope exposes the raw OIDC claims to the flow through the idpOIDCClaims context key, which a Custom Claims action can copy onto the access token the same way.
Confirming Conditional Access still applies
A security team that runs on Microsoft will ask about Conditional Access first. Descope is a relying party that sends users to Entra to authenticate, like any other application, so Entra evaluates the tenant's Conditional Access policies against the Descope MCP app on every sign-in. Descope receives an ID token only after those policies pass. You can verify that yourself in a few minutes.
If your tenant has no policy for the app yet, create one. A new tenant has security defaults enabled, and Entra won't let you turn a Conditional Access policy on until they're disabled, so the policy editor links to that setting in a banner:
Go to Entra ID > Conditional Access > Policies > New policy and name it "Descope MCP - require MFA".
Under Users, include the
Support LeadsandSupport Agentsgroups and exclude your emergency access accounts, as Microsoft recommends.Under Target resources > Resources (formerly cloud apps) > Include, select Select resources, then choose Descope MCP under Select specific resources.
Under Grant, select Require multifactor authentication.
Set Enable policy to On. On a production tenant, start with Report-only and check the results first.

The policy can be any rule your tenant already enforces, such as a compliant-device requirement or a named-location restriction. Multi-factor authentication (MFA) is the easiest one to see during a demo.
The first full sign-in through Claude Code, in the walkthrough below, runs into the policy. Entra challenges the user for MFA on its own page before the browser returns to Descope, and a user who hasn't registered a second factor gets prompted to set one up. A blocked sign-in ends at Entra with an error such as AADSTS53003, BlockedByConditionalAccess, and Descope never issues a token.
After that sign-in, open Entra ID > Monitoring & health > Sign-in logs and filter on the Descope MCP application. The sign-in appears as two entries, an Interrupted one for the MFA challenge followed by a Success one after the user completes it. On the successful entry, Basic info shows the authentication requirement as multifactor authentication, and the Conditional Access tab lists the policy by name with its grant control and a result of Success. The Authentication Details tab shows which second factor the user completed. Failed attempts appear in the same view, which makes it the first place to look when a partner reports a lockout.

Designing scopes at the tool level
Using a single scope for the whole server, something like mcp:access, is one of the most common mistakes made in MCP authorization. Once a user consents, the client can call any tool. One scope per tool makes the consent screen a real decision for the user.
Acme Tickets pairs each tool with its own scope, tickets:read for get_ticket and tickets:write for close_ticket, and the require_scopes decorators enforce the pairing on the server. FastMCP's authorization checks also apply to tool discovery. A token carrying only tickets:read gets back a tool list containing just get_ticket, so the model behind the client plans around that one tool. If it calls close_ticket anyway, the server answers with an unknown-tool error.
Entra groups become roles in Descope's role-based access control (RBAC) model. Create two roles under Authorization > RBAC in Descope, support-lead and support-agent. Then open the Acme tenant's Authentication Methods > SSO > Roles & Groups and map the object ID of Support Leads to support-lead and the object ID of Support Agents to support-agent. You can copy each ID from the group's Overview page under Entra ID > Groups > All groups. Descope matches these map keys against the values in the groups claim, which are object IDs. Keying the map by display name instead is a common Entra mismatch. Descope applies the mappings on every SSO login.

End-to-end walkthrough: client registration to token at the server
Start the server and your tunnel, then add the server to Claude Code:
python server.py
claude mcp add --transport http acme-tickets https://tickets.example.com/mcp
Open Claude Code and run /mcp. Acme Tickets shows as needing authentication, and selecting Authenticate opens the browser. Claude Code registers itself with Descope at this moment. It supports CIMD, so its client ID is a metadata URL that Claude hosts, and a client without CIMD support falls back to DCR. No admin creates anything in Entra or in Descope for the client.
The first URL the browser opens is Descope's authorization endpoint, and its query string carries every parameter the spec calls for: Claude Code's client_id, a code_challenge (the PKCE challenge) with code_challenge_method=S256, the requested scope, and a resource parameter naming your MCP server. Entering a test user's email and selecting the SSO button redirects the browser to Microsoft's sign-in page for your tenant. After the user enters their password, the Conditional Access policy from the previous section challenges them for MFA. Entra then returns to Descope and the consent screen appears. Once the user approves it, Descope sends the authorization code to Claude Code's local callback, which redeems it with the Proof Key for Code Exchange (PKCE) verifier.

To inspect the token at your server, temporarily log the raw bearer token in get_ticket:
logger.info("raw token: %s", get_access_token().token) # remove after testing
Trigger the tool by asking Claude Code to "summarize ticket 4821." The token appears in your server output, and pasting it into JWT Guru decodes it. For the support lead, the claims look roughly like this:

Each claim records one link in the chain from Entra to your server. The entra_groups value is the object ID of Support Leads, copied from the ID token Entra returned, so Entra authenticated this user. Descope issues a token only after Entra returns an ID token, which means the policies on the sign-in were satisfied, and the sign-in log entry from the previous section shows the same event from Entra's side. The support-lead role under tenants is what the Roles & Groups mapping produced from that ID.
The iss and aud claims show who minted the token and for whom. An Entra-issued Graph-style token carries a login.microsoftonline.com issuer and an audience such as https://graph.microsoft.com. This token carries Descope as its issuer and your MCP server URL in its audience list, next to the Claude Code client ID and your Descope project ID. The server's verifier requires that URL, which is why a token minted for a different MCP server gets a 401. The azp claim names the client the token was issued to, and amr records fed, the federated login through Entra. The client therefore holds a credential for Acme Tickets and for no other resource in your tenant. A support agent's token decodes to the same shape, with the object ID of Support Agents in entra_groups and the support-agent role under tenants.
A logged bearer token is a live credential until it expires, so remove the logging line once you've captured the token.
Audit and revocation
Descope records each consent as an agentic identity, scoped to a single user and a single client. Agentic Identity Hub > Agentic Identity lists every one, showing the associated user, the client, the MCP server, the granted scopes, and when the consent was created and last modified. You can filter by the support lead's email and the Claude Code client to show exactly what they granted it.
To cut the agent off, select its row and choose Revoke Access. Descope invalidates the consent and terminates the agent's sessions, and the next time Claude Code refreshes, Acme Tickets is back to needing authentication.

The support lead's Entra account, the Descope MCP app registration, their other apps, and the Claude Code client registration are untouched, and no one else loses access. Revocation doesn't cut off tokens already issued, though. Your server checks signatures against a locally cached JSON Web Key Set (JWKS) and refetches it from Descope only when the cache expires, so an access token issued before the revocation keeps working until it expires. Set a short access token lifetime under the MCP server's Session Management to keep the window between revocation and the token's expiry small.
The audit trail in Descope logs the SSO login through Entra, the consent and the scopes it covered, every token issuance, and the revocation. The agent ID on each event links it to one user and one client. Tool calls happen on your server, so close_ticket logs the sub claim and the granted scopes. Matching your server logs to Descope's audit events by user ID shows what an agent did and which Entra identity it acted under.
Entra's sign-in logs and Descope's audit trail answer different questions. Entra records the authentication event and the Conditional Access outcome attached to it. Descope records the MCP-specific consent, scope grant, and revocation history, which Entra has no view of. A security review wants both, and the two line up on the user's email address.
What stays in Entra and what Descope adds
Your MCP server now accepts connections from Claude Code and other MCP clients, while Entra ID still decides who those users are, which groups they belong to, and whether Conditional Access lets them in. Descope handles the parts MCP adds, registering each client the first time it connects and implementing tool-level consent. Two records confirm it. The decoded token at your server shows the full chain, and Entra's sign-in log shows the tenant's policy ran before Descope issued anything.
Your existing app registrations, Conditional Access policies, and claims policies are unchanged, and the only addition is the Descope MCP registration. Your security team keeps managing access in Entra, and those controls now extend to every agent that connects to the MCP server.
To set this up for your own tenant, start with a Free Forever Descope account and the Bring Your Own Auth for MCP guide. The Agentic Identity Hub manages client registration, consent, and revocation for each MCP server you add, regardless of which identity provider backs it. The complete tutorial server is in the acme-tickets-mcp repo. The Okta, Auth0 [link: unpublished], and Amazon Cognito entries in this series follow the same pattern, and when a future MCP server relies on a SAML IdP or a homegrown login system, external authentication brings it into the same consent flow.


