Class FluxerOAuthHandler
public class FluxerOAuthHandler : OAuthHandler<FluxerOAuthOptions>
- Inheritance
-
objectAuthenticationHandler<FluxerOAuthOptions>RemoteAuthenticationHandler<FluxerOAuthOptions>OAuthHandler<FluxerOAuthOptions>FluxerOAuthHandler
Constructors
FluxerOAuthHandler(IOptionsMonitor<FluxerOAuthOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
public FluxerOAuthHandler(IOptionsMonitor<FluxerOAuthOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
Parameters
optionsIOptionsMonitor<FluxerOAuthOptions>loggerILoggerFactoryencoderUrlEncoderclockISystemClock
Methods
BuildChallengeUrl(AuthenticationProperties, string)
Constructs the OAuth challenge url.
protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
Parameters
propertiesAuthenticationPropertiesThe Microsoft.AspNetCore.Authentication.AuthenticationProperties.
redirectUristringThe url to redirect to once the challenge is completed.
Returns
- string
The challenge url.
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)
Creates an Microsoft.AspNetCore.Authentication.AuthenticationTicket from the specified tokens.
protected override Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Parameters
identityClaimsIdentityThe ClaimsIdentity.
propertiesAuthenticationPropertiesThe Microsoft.AspNetCore.Authentication.AuthenticationProperties.
tokensOAuthTokenResponseThe Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse.
Returns
- Task<AuthenticationTicket>
The Microsoft.AspNetCore.Authentication.AuthenticationTicket.