AuthenticationContext.GetAuthorizationRequestUrlAsync Method

Definition

Overloads

GetAuthorizationRequestUrlAsync(String, String, Uri, UserIdentifier, String)

Gets URL of the authorize endpoint including the query parameters.

GetAuthorizationRequestUrlAsync(String, String, Uri, UserIdentifier, String, String)

Gets URL of the authorize endpoint including the query parameters.

GetAuthorizationRequestUrlAsync(String, String, Uri, UserIdentifier, String)

Gets URL of the authorize endpoint including the query parameters.

public System.Threading.Tasks.Task<Uri> GetAuthorizationRequestUrlAsync (string resource, string clientId, Uri redirectUri, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId, string extraQueryParameters);
member this.GetAuthorizationRequestUrlAsync : string * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * string -> System.Threading.Tasks.Task<Uri>
Public Function GetAuthorizationRequestUrlAsync (resource As String, clientId As String, redirectUri As Uri, userId As UserIdentifier, extraQueryParameters As String) As Task(Of Uri)

Parameters

resource
System.String

Identifier of the target resource that is the recipient of the requested token.

clientId
System.String

Identifier of the client requesting the token.

redirectUri
System.Uri

Address to return to upon receiving a response from the authority.

userId
UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

extraQueryParameters
System.String

This parameter will be appended as is to the query string in the HTTP authentication request to the authority. The parameter can be null.

Returns

System.Threading.Tasks.Task<System.Uri>

URL of the authorize endpoint including the query parameters.

Applies to

GetAuthorizationRequestUrlAsync(String, String, Uri, UserIdentifier, String, String)

Gets URL of the authorize endpoint including the query parameters.

public System.Threading.Tasks.Task<Uri> GetAuthorizationRequestUrlAsync (string resource, string clientId, Uri redirectUri, Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier userId, string extraQueryParameters, string claims);
member this.GetAuthorizationRequestUrlAsync : string * string * Uri * Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifier * string * string -> System.Threading.Tasks.Task<Uri>
Public Function GetAuthorizationRequestUrlAsync (resource As String, clientId As String, redirectUri As Uri, userId As UserIdentifier, extraQueryParameters As String, claims As String) As Task(Of Uri)

Parameters

resource
System.String

Identifier of the target resource that is the recipient of the requested token.

clientId
System.String

Identifier of the client requesting the token.

redirectUri
System.Uri

Address to return to upon receiving a response from the authority.

userId
UserIdentifier

Identifier of the user token is requested for. This parameter can be UserIdentifier.Any.

extraQueryParameters
System.String

This parameter will be appended as is to the query string in the HTTP authentication request to the authority. The parameter can be null.

claims
System.String

Additional claims that are needed for authentication. Acquired from the AdalClaimChallengeException. This parameter can be null.

Returns

System.Threading.Tasks.Task<System.Uri>

URL of the authorize endpoint including the query parameters.

Applies to