Share via


BearerTokenExtensions.AddBearerToken メソッド

定義

オーバーロード

AddBearerToken(AuthenticationBuilder)

ベアラー トークン認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

ベアラー トークン認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

AddBearerToken(AuthenticationBuilder, String)

ベアラー トークン認証を追加します。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

ベアラー トークン認証を追加します。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

AddBearerToken(AuthenticationBuilder)

ベアラー トークン認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder) As AuthenticationBuilder

パラメーター

戻り値

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

適用対象

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

ベアラー トークン認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> configure);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder, configure As Action(Of BearerTokenOptions)) As AuthenticationBuilder

パラメーター

configure
Action<BearerTokenOptions>

ベアラー トークン認証オプションを構成するために使用されるアクション。

戻り値

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

適用対象

AddBearerToken(AuthenticationBuilder, String)

ベアラー トークン認証を追加します。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

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

パラメーター

authenticationScheme
String

認証スキームです。

戻り値

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

適用対象

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

ベアラー トークン認証を追加します。

ベアラー トークンは、 を呼び出 SignInAsync(HttpContext, String, ClaimsPrincipal)すことによって取得できます。

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddBearerToken (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> configure);
static member AddBearerToken : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddBearerToken (builder As AuthenticationBuilder, authenticationScheme As String, configure As Action(Of BearerTokenOptions)) As AuthenticationBuilder

パラメーター

authenticationScheme
String

認証スキームです。

configure
Action<BearerTokenOptions>

ベアラー トークン認証オプションを構成するために使用されるアクション。

戻り値

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

適用対象