JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication Méthode

Définition

Surcharges

UseJwtBearerAuthentication(IApplicationBuilder)
Obsolète.
Obsolète.

UseJwtBearerAuthentication est obsolète. Configurez l’authentification JwtBearer avec AddAuthentication(). AddJwtBearer dans ConfigureServices. Consultez https://go.microsoft.com/fwlink/?linkid=845470 pour plus d’informations.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)
Obsolète.
Obsolète.

UseJwtBearerAuthentication est obsolète. Configurez l’authentification JwtBearer avec AddAuthentication(). AddJwtBearer dans ConfigureServices. Consultez https://go.microsoft.com/fwlink/?linkid=845470 pour plus d’informations.

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Ajoute l’intergiciel JwtBearerMiddleware au spécifié IApplicationBuilder, ce qui active les fonctionnalités de traitement du jeton du porteur. Ce middleware comprend les jetons correctement mis en forme et sécurisés qui apparaissent dans l’en-tête de la demande. Si options.AuthenticationMode a la valeur Active, les revendications dans le jeton du porteur sont ajoutées à l’utilisateur IPrincipal de la requête actuelle. Si Options.AuthenticationMode est Passif, la requête actuelle n’est pas modifiée, mais IAuthenticationManager AuthenticateAsync peut être utilisé à tout moment pour obtenir les revendications à partir du jeton du porteur de la requête. Voir aussi http://tools.ietf.org/html/rfc6749

UseJwtBearerAuthentication(IApplicationBuilder)

Source:
JwtBearerAppBuilderExtensions.cs
Source:
JwtBearerAppBuilderExtensions.cs

Attention

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication est obsolète. Configurez l’authentification JwtBearer avec AddAuthentication(). AddJwtBearer dans ConfigureServices. Consultez https://go.microsoft.com/fwlink/?linkid=845470 pour plus d’informations.

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

Paramètres

app
IApplicationBuilder

IApplicationBuilder à laquelle ajouter le gestionnaire.

Retours

Référence à cette instance à la fin de l’opération.

Attributs

S’applique à

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Source:
JwtBearerAppBuilderExtensions.cs
Source:
JwtBearerAppBuilderExtensions.cs

Attention

UseJwtBearerAuthentication is obsolete. Configure JwtBearer authentication with AddAuthentication().AddJwtBearer in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseJwtBearerAuthentication est obsolète. Configurez l’authentification JwtBearer avec AddAuthentication(). AddJwtBearer dans ConfigureServices. Consultez https://go.microsoft.com/fwlink/?linkid=845470 pour plus d’informations.

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

Paramètres

app
IApplicationBuilder

IApplicationBuilder à laquelle ajouter le gestionnaire.

options
JwtBearerOptions

JwtBearerOptions qui spécifie des options pour le gestionnaire.

Retours

Référence à cette instance à la fin de l’opération.

Attributs

S’applique à

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

Ajoute l’intergiciel JwtBearerMiddleware au spécifié IApplicationBuilder, ce qui active les fonctionnalités de traitement du jeton du porteur. Ce middleware comprend les jetons correctement mis en forme et sécurisés qui apparaissent dans l’en-tête de la demande. Si options.AuthenticationMode a la valeur Active, les revendications dans le jeton du porteur sont ajoutées à l’utilisateur IPrincipal de la requête actuelle. Si Options.AuthenticationMode est Passif, la requête actuelle n’est pas modifiée, mais IAuthenticationManager AuthenticateAsync peut être utilisé à tout moment pour obtenir les revendications à partir du jeton du porteur de la requête. Voir aussi 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

Paramètres

app
IApplicationBuilder

IApplicationBuilder à laquelle ajouter le middleware.

options
JwtBearerOptions

JwtBearerOptions qui spécifie les options du middleware.

Retours

Référence à cette instance à la fin de l’opération.

S’applique à