JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| UseJwtBearerAuthentication(IApplicationBuilder) |
Zastaralé.
Zastaralé.
UseJwtBearerAuthentication je zastaralá. Nakonfigurujte ověřování JwtBearer pomocí AddAuthentication (). AddJwtBearer v ConfigureServices. Další podrobnosti najdete v tématu https://go.microsoft.com/fwlink/?linkid=845470 . |
| UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) |
Zastaralé.
Zastaralé.
UseJwtBearerAuthentication je zastaralá. Nakonfigurujte ověřování JwtBearer pomocí AddAuthentication (). AddJwtBearer v ConfigureServices. Další podrobnosti najdete v tématu https://go.microsoft.com/fwlink/?linkid=845470 . |
| UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions) |
Přidá JwtBearerMiddleware middleware do určeného IApplicationBuilder , který umožňuje schopnosti zpracování nosných tokenů. Tento middleware rozumí vhodně naformátované a zabezpečené tokeny, které se zobrazí v hlavičce požadavku. Pokud jsou možnosti. AuthenticationMode aktivní, přidají se deklarace v rámci nosných tokenů do uživatele IPrincipal aktuálního požadavku. Pokud jsou možnosti. AuthenticationMode pasivní, aktuální požadavek se neupraví, ale IAuthenticationManager AuthenticateAsync se dá kdykoli použít k získání deklarací z tokenu nosiče žádosti. Viz také http://tools.ietf.org/html/rfc6749 |
UseJwtBearerAuthentication(IApplicationBuilder)
Upozornění
Upozornění
UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseJwtBearerAuthentication je zastaralá. Nakonfigurujte ověřování JwtBearer pomocí AddAuthentication (). AddJwtBearer v ConfigureServices. Další podrobnosti najdete v tématu https://go.microsoft.com/fwlink/?linkid=845470 .
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder) As IApplicationBuilder
Parametry
IApplicationBuilderPřidejte obslužnou rutinu do.
Návraty
Odkaz na tuto instanci po dokončení operace.
- Atributy
Platí pro
UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)
Upozornění
Upozornění
UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseJwtBearerAuthentication je zastaralá. Nakonfigurujte ověřování JwtBearer pomocí AddAuthentication (). AddJwtBearer v ConfigureServices. Další podrobnosti najdete v tématu https://go.microsoft.com/fwlink/?linkid=845470 .
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions options);
[System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder, options As JwtBearerOptions) As IApplicationBuilder
Parametry
IApplicationBuilderPřidejte obslužnou rutinu do.
- options
- JwtBearerOptions
A JwtBearerOptions který určuje možnosti pro obslužnou rutinu.
Návraty
Odkaz na tuto instanci po dokončení operace.
- Atributy
Platí pro
UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)
Přidá JwtBearerMiddleware middleware do určeného IApplicationBuilder , který umožňuje schopnosti zpracování nosných tokenů. Tento middleware rozumí vhodně naformátované a zabezpečené tokeny, které se zobrazí v hlavičce požadavku. Pokud jsou možnosti. AuthenticationMode aktivní, přidají se deklarace v rámci nosných tokenů do uživatele IPrincipal aktuálního požadavku. Pokud jsou možnosti. AuthenticationMode pasivní, aktuální požadavek se neupraví, ale IAuthenticationManager AuthenticateAsync se dá kdykoli použít k získání deklarací z tokenu nosiče žádosti. Viz také http://tools.ietf.org/html/rfc6749
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseJwtBearerAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::JwtBearerOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseJwtBearerAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.JwtBearerOptions options);
static member UseJwtBearerAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.JwtBearerOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseJwtBearerAuthentication (app As IApplicationBuilder, options As JwtBearerOptions) As IApplicationBuilder
Parametry
IApplicationBuilderPřidejte middleware do.
- options
- JwtBearerOptions
A JwtBearerOptions který určuje možnosti pro middleware.
Návraty
Odkaz na tuto instanci po dokončení operace.