Table of Contents

Class FluxerOAuthHandler

Namespace
Fluxer.Net.OAuth
Assembly
Fluxer.Net.dll
public class FluxerOAuthHandler : OAuthHandler<FluxerOAuthOptions>
Inheritance
object
AuthenticationHandler<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

options IOptionsMonitor<FluxerOAuthOptions>
logger ILoggerFactory
encoder UrlEncoder
clock ISystemClock

Methods

BuildChallengeUrl(AuthenticationProperties, string)

Constructs the OAuth challenge url.

protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)

Parameters

properties AuthenticationProperties

The Microsoft.AspNetCore.Authentication.AuthenticationProperties.

redirectUri string

The 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

identity ClaimsIdentity

The ClaimsIdentity.

properties AuthenticationProperties

The Microsoft.AspNetCore.Authentication.AuthenticationProperties.

tokens OAuthTokenResponse

The Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse.

Returns

Task<AuthenticationTicket>

The Microsoft.AspNetCore.Authentication.AuthenticationTicket.