/// <summary> /// Prepares the login request. /// </summary> /// <param name="extraParameters">extra parameters to send to the authorize endpoint.</param> /// <returns>State for initiating the authorize request and processing the response</returns> public virtual async Task<AuthorizeState> PrepareLoginAsync(object extraParameters = null) { _logger.LogTrace("PrepareLoginAsync"); await EnsureConfigurationAsync(); return _authorizeClient.CreateAuthorizeState(extraParameters); }
/// <summary> /// Prepares the login request. /// </summary> /// <param name="frontChannelParameters">extra parameters to send to the authorize endpoint.</param> /// /// <param name="cancellationToken">A token that can be used to cancel the request</param> /// <returns>State for initiating the authorize request and processing the response</returns> public virtual async Task <AuthorizeState> PrepareLoginAsync(FrontChannelParameters frontChannelParameters = null, CancellationToken cancellationToken = default) { _logger.LogTrace("PrepareLoginAsync"); await EnsureConfigurationAsync(cancellationToken); return(_authorizeClient.CreateAuthorizeState(frontChannelParameters)); }
/// <summary> /// Prepares the login request. /// </summary> /// <param name="extraParameters">extra parameters to send to the authorize endpoint.</param> /// /// <param name="cancellationToken">A token that can be used to cancel the request</param> /// <returns>State for initiating the authorize request and processing the response</returns> public virtual async Task <AuthorizeState> PrepareLoginAsync(IDictionary <string, string> extraParameters = null, CancellationToken cancellationToken = default) { _logger.LogTrace("PrepareLoginAsync"); await EnsureConfigurationAsync(cancellationToken); return(_authorizeClient.CreateAuthorizeState(extraParameters)); }
/// <summary> /// Prepares the login request. /// </summary> /// <param name="extraParameters">extra parameters to send to the authorize endpoint.</param> /// <returns>State for initiating the authorize request and processing the response</returns> public async Task <AuthorizeState> PrepareLoginAsync(Task <RsaSecurityKey> pregeneratedKeyTask = null, object extraParameters = null) { _logger.LogTrace("PrepareLoginAsync"); await EnsureConfigurationAsync().ConfigureAwait(false); return(_authorizeClient.CreateAuthorizeState(pregeneratedKeyTask, extraParameters)); }