OAuthAppBuilderExtensions.UseOAuthAuthentication Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
UseOAuthAuthentication(IApplicationBuilder) |
Veraltet.
Veraltet.
UseOAuthentication ist veraltet. Konfigurieren Sie die OAuth-Authentifizierung mit AddAuthentication(). AddOAuth in ConfigureServices. Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=845470. |
UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) |
Veraltet.
Veraltet.
UseOAuthentication ist veraltet. Konfigurieren Sie die OAuth-Authentifizierung mit AddAuthentication(). AddOAuth in ConfigureServices. Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=845470. |
UseOAuthAuthentication(IApplicationBuilder, OAuthOptions) |
Fügt die OAuthMiddleware<TOptions> Middleware der angegebenen IApplicationBuilderhinzu, wodurch OAuth 2.0-Authentifizierungsfunktionen aktiviert werden. |
UseOAuthAuthentication(IApplicationBuilder)
- Quelle:
- OAuthAppBuilderExtensions.cs
- Quelle:
- OAuthAppBuilderExtensions.cs
Achtung
Achtung
UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseOAuthentication ist veraltet. Konfigurieren Sie die OAuth-Authentifizierung mit AddAuthentication(). AddOAuth in ConfigureServices. Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=845470.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOAuthAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder) As IApplicationBuilder
Parameter
Der , IApplicationBuilder dem der Handler hinzugefügt werden soll.
Gibt zurück
Ein Verweis auf diese Instanz, nachdem der Vorgang abgeschlossen ist.
- Attribute
Gilt für:
UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)
- Quelle:
- OAuthAppBuilderExtensions.cs
- Quelle:
- OAuthAppBuilderExtensions.cs
Achtung
Achtung
UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseOAuthentication ist veraltet. Konfigurieren Sie die OAuth-Authentifizierung mit AddAuthentication(). AddOAuth in ConfigureServices. Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=845470.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOAuthAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::OAuth::OAuthOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions options);
[System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseOAuthAuthentication is obsolete. Configure OAuth authentication with AddAuthentication().AddOAuth in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder, options As OAuthOptions) As IApplicationBuilder
Parameter
Der , IApplicationBuilder dem der Handler hinzugefügt werden soll.
- options
- OAuthOptions
Eine OAuthOptions , die Optionen für den Handler angibt.
Gibt zurück
Ein Verweis auf diese Instanz, nachdem der Vorgang abgeschlossen ist.
- Attribute
Gilt für:
UseOAuthAuthentication(IApplicationBuilder, OAuthOptions)
Fügt die OAuthMiddleware<TOptions> Middleware der angegebenen IApplicationBuilderhinzu, wodurch OAuth 2.0-Authentifizierungsfunktionen aktiviert werden.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseOAuthAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::OAuthOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseOAuthAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.OAuthOptions options);
static member UseOAuthAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.OAuthOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseOAuthAuthentication (app As IApplicationBuilder, options As OAuthOptions) As IApplicationBuilder
Parameter
Der, IApplicationBuilder dem die Middleware hinzugefügt werden soll.
- options
- OAuthOptions
Eine OAuthOptions , die Optionen für die Middleware angibt.
Gibt zurück
Ein Verweis auf diese Instanz, nachdem der Vorgang abgeschlossen ist.