JwtBearerExtensions.AddJwtBearer Method

Definition

Overloads

AddJwtBearer(AuthenticationBuilder)
AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)
AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)
AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

AddJwtBearer(AuthenticationBuilder)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddJwtBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder) As AuthenticationBuilder

Parameters

Returns

AuthenticationBuilder

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddJwtBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parameters

configureOptions
Action<JwtBearerOptions>

Returns

AuthenticationBuilder

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddJwtBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ authenticationScheme, Action<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String
configureOptions
Action<JwtBearerOptions>

Returns

AuthenticationBuilder

AddJwtBearer(AuthenticationBuilder, String, String, Action<JwtBearerOptions>)

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddJwtBearer(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, System::String ^ authenticationScheme, System::String ^ displayName, Action<Microsoft::AspNetCore::Authentication::JwtBearer::JwtBearerOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> configureOptions);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of JwtBearerOptions)) As AuthenticationBuilder

Parameters

authenticationScheme
String
displayName
String
configureOptions
Action<JwtBearerOptions>

Returns

AuthenticationBuilder

Applies to