JwtBearerExtensions.AddJwtBearer メソッド

定義

オーバーロード

AddJwtBearer(AuthenticationBuilder)

既定のスキーム AuthenticationSchemeを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

既定のスキーム AuthenticationSchemeを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

AddJwtBearer(AuthenticationBuilder, String)

定義済みのスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

指定したスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

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

指定したスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

AddJwtBearer(AuthenticationBuilder)

既定のスキーム AuthenticationSchemeを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

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

パラメーター

戻り値

操作が完了した後の への builder 参照。

適用対象

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

既定のスキーム AuthenticationSchemeを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

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

パラメーター

configureOptions
Action<JwtBearerOptions>

の構成 JwtBearerOptionsを許可するデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象

AddJwtBearer(AuthenticationBuilder, String)

定義済みのスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddJwtBearer : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddJwtBearer (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

パラメーター

authenticationScheme
String

認証スキームです。

戻り値

操作が完了した後の への builder 参照。

適用対象

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

指定したスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

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

パラメーター

authenticationScheme
String

認証スキームです。

configureOptions
Action<JwtBearerOptions>

の構成 JwtBearerOptionsを許可するデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象

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

指定したスキームを使用して JWT ベアラー認証を有効にします。

JWT ベアラー認証は、要求ヘッダーから JWT トークンを抽出して検証することで認証を Authorization 実行します。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddJwtBearer (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, 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

パラメーター

authenticationScheme
String

認証スキームです。

displayName
String

認証ハンドラーの表示名。

configureOptions
Action<JwtBearerOptions>

の構成 JwtBearerOptionsを許可するデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象