JwtBearerAppBuilderExtensions.UseJwtBearerAuthentication メソッド

定義

オーバーロード

UseJwtBearerAuthentication(IApplicationBuilder)
古い.
古い.

UseJwtBearerAuthentication は廃止されました。 AddAuthentication() を使用して JwtBearer 認証を構成します。ConfigureServices の AddJwtBearer。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)
古い.
古い.

UseJwtBearerAuthentication は廃止されました。 AddAuthentication() を使用して JwtBearer 認証を構成します。ConfigureServices の AddJwtBearer。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

ミドルウェアを JwtBearerMiddleware 指定された IApplicationBuilderに追加します。これにより、ベアラー トークン処理機能が有効になります。 このミドルウェアは、要求ヘッダーに表示される適切な形式とセキュリティで保護されたトークンを理解します。 Options.AuthenticationMode がアクティブな場合、ベアラー トークン内のクレームが現在の要求の IPrincipal ユーザーに追加されます。 Options.AuthenticationMode がパッシブの場合、現在の要求は変更されませんが、要求のベアラー トークンから要求を取得するために IAuthenticationManager AuthenticateAsync をいつでも使用できます。 関連項目 http://tools.ietf.org/html/rfc6749

UseJwtBearerAuthentication(IApplicationBuilder)

注意事項

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

UseJwtBearerAuthentication は廃止されました。 AddAuthentication() を使用して JwtBearer 認証を構成します。ConfigureServices の AddJwtBearer。 詳細については、 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

パラメーター

app
IApplicationBuilder

IApplicationBuilderハンドラーを追加する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

属性

適用対象

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

注意事項

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

UseJwtBearerAuthentication は廃止されました。 AddAuthentication() を使用して JwtBearer 認証を構成します。ConfigureServices の AddJwtBearer。 詳細については、 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

パラメーター

app
IApplicationBuilder

IApplicationBuilderハンドラーを追加する 。

options
JwtBearerOptions

JwtBearerOptionsハンドラーのオプションを指定する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

属性

適用対象

UseJwtBearerAuthentication(IApplicationBuilder, JwtBearerOptions)

ミドルウェアを JwtBearerMiddleware 指定された IApplicationBuilderに追加します。これにより、ベアラー トークン処理機能が有効になります。 このミドルウェアは、要求ヘッダーに表示される適切な形式とセキュリティで保護されたトークンを理解します。 Options.AuthenticationMode がアクティブな場合、ベアラー トークン内のクレームが現在の要求の IPrincipal ユーザーに追加されます。 Options.AuthenticationMode がパッシブの場合、現在の要求は変更されませんが、要求のベアラー トークンから要求を取得するために IAuthenticationManager AuthenticateAsync をいつでも使用できます。 関連項目 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

パラメーター

app
IApplicationBuilder

IApplicationBuilderミドルウェアを追加する 。

options
JwtBearerOptions

JwtBearerOptionsミドルウェアのオプションを指定する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

適用対象