OAuthExtensions.AddOAuth Methode

Definition

Überlädt

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

Quelle:
OAuthExtensions.cs
Quelle:
OAuthExtensions.cs

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

configureOptions
Action<OAuthOptions>

Ein Delegat zum Konfigurieren OAuthOptionsvon .

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

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

Quelle:
OAuthExtensions.cs
Quelle:
OAuthExtensions.cs

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

displayName
String

Ein Anzeigename für den Authentifizierungshandler.

configureOptions
Action<OAuthOptions>

Ein Delegat zum Konfigurieren OAuthOptionsvon .

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

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

Quelle:
OAuthExtensions.cs
Quelle:
OAuthExtensions.cs

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Typparameter

TOptions
THandler

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

configureOptions
Action<TOptions>

Ein Delegat zum Konfigurieren der Handler-spezifischen Optionen.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für:

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

Quelle:
OAuthExtensions.cs
Quelle:
OAuthExtensions.cs

Fügt OAuth 2.0-basierte Authentifizierung mithilfe des angegebenen Authentifizierungsschemas hinzu AuthenticationBuilder .

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

Typparameter

TOptions
THandler

Parameter

authenticationScheme
String

Das Authentifizierungsschema.

displayName
String

Ein Anzeigename für den Authentifizierungshandler.

configureOptions
Action<TOptions>

Ein Delegat zum Konfigurieren der Handler-spezifischen Optionen.

Gibt zurück

Ein Verweis auf, builder nachdem der Vorgang abgeschlossen wurde.

Gilt für: