Microsoft.Identity.Client.AcquireTokenByAuthorizationCodeParameterBuilder
public sealed class AcquireTokenByAuthorizationCodeParameterBuilder : AbstractConfidentialClientAcquireTokenParameterBuilder<AcquireTokenByAuthorizationCodeParameterBuilder>
Builder for AcquireTokenByAuthorizationCode
public AcquireTokenByAuthorizationCodeParameterBuilder WithCcsRoutingHint(string userObjectIdentifier, string tenantIdentifier)
To help with resiliency, the AAD backup authentication system operates as an AAD backup.
This will provide backup authentication system with a routing hint to help improve performance during authentication.
To help with resiliency, the AAD backup authentication system operates as an AAD backup.
This will provide backup authentication system with a routing hint to help improve performance during authentication.
public AcquireTokenByAuthorizationCodeParameterBuilder WithPkceCodeVerifier(string pkceCodeVerifier)
Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE).
See (https://tools.ietf.org/html/rfc7636) for more details.
Applicable to first-party applications only, this method also allows to specify
if the x5c claim should be sent to Azure AD.
Sending the x5c enables application developers to achieve easy certificate roll-over in Azure AD:
this method will send the certificate chain to Azure AD along with the token request,
so that Azure AD can use it to validate the subject name based on a trusted issuer policy.
This saves the application admin from the need to explicitly manage the certificate rollover
(either via portal or PowerShell/CLI operation). For details see https://aka.ms/msal-net-sni
public AcquireTokenByAuthorizationCodeParameterBuilder WithSpaAuthorizationCode(bool requestSpaAuthorizationCode = true)
Requests an auth code for the frontend (SPA using MSAL.js for instance).
See https://aka.ms/msal-net/spa-auth-code for details.