Esempio n. 1
0
 /// <summary>
 /// Gets URL of the authorize endpoint including the query parameters.
 /// </summary>
 /// <param name="ctx">Authentication context instance</param>
 /// <param name="resource">Identifier of the target resource that is the recipient of the requested token.</param>
 /// <param name="clientId">Identifier of the client requesting the token.</param>
 /// <param name="redirectUri">Address to return to upon receiving a response from the authority.</param>
 /// <param name="userId">Identifier of the user token is requested for. This parameter can be <see cref="UserIdentifier"/>.Any.</param>
 /// <param name="extraQueryParameters">This parameter will be appended as is to the query string in the HTTP authentication request to the authority. The parameter can be null.</param>
 /// <param name="claims">Additional claims that are needed for authentication. Acquired from the AdalClaimChallengeException. This parameter can be null.</param>
 /// <returns>URL of the authorize endpoint including the query parameters.</returns>
 public static async Task <Uri> GetAuthorizationRequestUrlAsync(this AuthenticationContext ctx, string resource,
                                                                string clientId, Uri redirectUri,
                                                                UserIdentifier userId, string extraQueryParameters, string claims)
 {
     return(await ctx
            .GetAuthorizationRequestUrlCommonAsync(resource, clientId, redirectUri, userId, extraQueryParameters,
                                                   claims).ConfigureAwait(false));
 }