OAuthExtensions.AddOAuth Method

Definition

Overloads

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> configureOptions);
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOAuth (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of OAuthOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

configureOptions
Action<OAuthOptions>

A delegate to configure OAuthOptions.

Returns

A reference to builder after the operation has completed.

Applies to

AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> configureOptions);
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddOAuth (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of OAuthOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String

The authentication scheme.

displayName
String

A display name for the authentication handler.

configureOptions
Action<OAuthOptions>

A delegate to configure OAuthOptions.

Returns

A reference to builder after the operation has completed.

Applies to

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth<TOptions,THandler> (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>;
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options>)
<Extension()>
Public Function AddOAuth(Of TOptions As {OAuthOptionsNew}, THandler As {OAuthOptionsNew}) (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

Type Parameters

TOptions
THandler

Parameters

authenticationScheme
String

The authentication scheme.

configureOptions
Action<TOptions>

A delegate to configure the handler specific options.

Returns

A reference to builder after the operation has completed.

Applies to

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)

Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs
Source:
OAuthExtensions.cs

Adds OAuth 2.0 based authentication to AuthenticationBuilder using the specified authentication scheme.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddOAuth<TOptions,THandler> (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions, new() where THandler : Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>;
static member AddOAuth : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<'Options>)
<Extension()>
Public Function AddOAuth(Of TOptions As {OAuthOptionsNew}, THandler As {OAuthOptionsNew}) (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

Type Parameters

TOptions
THandler

Parameters

authenticationScheme
String

The authentication scheme.

displayName
String

A display name for the authentication handler.

configureOptions
Action<TOptions>

A delegate to configure the handler specific options.

Returns

A reference to builder after the operation has completed.

Applies to