AuthenticationContext.GetAuthorizationRequestURL Method (String, String, Uri, UserIdentifier, String)
Applies to: Version: 2.19.208020213, Platform: .NET Desktop.
Gets URL of the authorize endpoint including the query parameters.
Namespace: Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly: Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)
Syntax
public Uri GetAuthorizationRequestURL(
string resource,
string clientId,
Uri redirectUri,
UserIdentifier userId,
string extraQueryParameters
)
Parameters
resource
Type: System.StringIdentifier of the target resource that is the recipient of the requested token.
clientId
Type: System.StringIdentifier of the client requesting the token.
redirectUri
Type: System.UriAddress to return to upon receiving a response from the authority.
userId
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.UserIdentifierIdentifier of the user token is requested for. This parameter can be UserIdentifier.Any.
extraQueryParameters
Type: System.StringThis parameter will be appended as is to the query string in the HTTP authentication request to the authority. The parameter can be null.
Return Value
Type: System.Uri
URL of the authorize endpoint including the query parameters.
See Also
AuthenticationContext Class
Microsoft.IdentityModel.Clients.ActiveDirectory Namespace
Return to top