Class GetAuthorizationRequestUrlParameterBuilder
NOTE: a few of the methods in AbstractAcquireTokenParameterBuilder (e.g. account) don't make sense here. Do we want to create a further base that contains ALL of the common methods, and then have another one including account, etc that are only used for AcquireToken?
public sealed class GetAuthorizationRequestUrlParameterBuilder : AbstractConfidentialClientAcquireTokenParameterBuilder<GetAuthorizationRequestUrlParameterBuilder>
- Inheritance
-
GetAuthorizationRequestUrlParameterBuilder
- Inherited Members
- Extension Methods
Methods
ExecuteAsync()
public Task<Uri> ExecuteAsync()
Returns
- Task<Uri>
ExecuteAsync(CancellationToken)
public Task<Uri> ExecuteAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
- Task<Uri>
WithAccount(IAccount)
public GetAuthorizationRequestUrlParameterBuilder WithAccount(IAccount account)
Parameters
accountIAccount
Returns
WithCcsRoutingHint(string, string)
To help with resiliency, the AAD backup authentication system operates as an AAD backup. This will provide the AAD backup authentication system with a routing hint to help improve performance during authentication. The hint created with this api will take precedence over the one created with WithLoginHint(string)
public GetAuthorizationRequestUrlParameterBuilder WithCcsRoutingHint(string userObjectIdentifier, string tenantIdentifier)
Parameters
userObjectIdentifierstringGUID which is unique to the user, parsed from the client_info.
tenantIdentifierstringGUID format of the tenant ID, parsed from the client_info.
Returns
- GetAuthorizationRequestUrlParameterBuilder
The builder to chain the .With methods
WithExtraScopesToConsent(IEnumerable<string>)
public GetAuthorizationRequestUrlParameterBuilder WithExtraScopesToConsent(IEnumerable<string> extraScopesToConsent)
Parameters
extraScopesToConsentIEnumerable<string>
Returns
WithLoginHint(string)
public GetAuthorizationRequestUrlParameterBuilder WithLoginHint(string loginHint)
Parameters
loginHintstring
Returns
WithPkce(out string)
Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
public GetAuthorizationRequestUrlParameterBuilder WithPkce(out string codeVerifier)
Parameters
codeVerifierstringMSAL.NET will generate it.
Returns
WithPrompt(Prompt)
Specifies the interactive experience for the user.
public GetAuthorizationRequestUrlParameterBuilder WithPrompt(Prompt prompt)
Parameters
promptPromptRequested interactive experience. The default is SelectAccount
Returns
- GetAuthorizationRequestUrlParameterBuilder
The builder to chain the .With methods
WithRedirectUri(string)
Sets the redirect URI to add to the Authorization request URL
public GetAuthorizationRequestUrlParameterBuilder WithRedirectUri(string redirectUri)
Parameters
redirectUristringAddress to return to upon receiving a response from the authority.