Udostępnij za pośrednictwem


OAuthExtensions.AddOAuth Metoda

Definicja

Przeciążenia

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Parametry

authenticationScheme
String

Schemat uwierzytelniania.

configureOptions
Action<OAuthOptions>

Pełnomocnik do skonfigurowania OAuthOptions.

Zwraca

Odwołanie do builder po zakończeniu operacji.

Dotyczy

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

Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Parametry

authenticationScheme
String

Schemat uwierzytelniania.

displayName
String

Nazwa wyświetlana programu obsługi uwierzytelniania.

configureOptions
Action<OAuthOptions>

Pełnomocnik do skonfigurowania OAuthOptions.

Zwraca

Odwołanie do builder po zakończeniu operacji.

Dotyczy

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

Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Parametry typu

TOptions
THandler

Parametry

authenticationScheme
String

Schemat uwierzytelniania.

configureOptions
Action<TOptions>

Pełnomocnik do konfigurowania określonych opcji programu obsługi.

Zwraca

Odwołanie do builder po zakończeniu operacji.

Dotyczy

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

Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs
Źródło:
OAuthExtensions.cs

Dodaje uwierzytelnianie oparte na protokole OAuth 2.0 do AuthenticationBuilder używania określonego schematu uwierzytelniania.

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

Parametry typu

TOptions
THandler

Parametry

authenticationScheme
String

Schemat uwierzytelniania.

displayName
String

Nazwa wyświetlana programu obsługi uwierzytelniania.

configureOptions
Action<TOptions>

Pełnomocnik do konfigurowania określonych opcji programu obsługi.

Zwraca

Odwołanie do builder po zakończeniu operacji.

Dotyczy