Language

AuthenticationBuilder クラス

定義

認証の構成に使用されます

public ref class AuthenticationBuilder
public class AuthenticationBuilder
type AuthenticationBuilder = class
Public Class AuthenticationBuilder
継承
AuthenticationBuilder

コンストラクター

Name 説明
AuthenticationBuilder(IServiceCollection)

AuthenticationBuilderの新しいインスタンスを初期化します。

プロパティ

Name 説明
Services

構成されているサービス。

メソッド

Name 説明
AddPolicyScheme(String, String, Action<PolicySchemeOptions>)

他の認証スキームにリダイレクトするために使用できる PolicySchemeHandler ベースの認証ハンドラーを追加します。

AddRemoteScheme<TOptions,THandler>(String, String, Action<TOptions>)

IAuthenticationServiceで使用できるリモート認証をサポートするRemoteAuthenticationHandler<TOptions> ベースのAuthenticationSchemeを追加します。

AddScheme<TOptions,THandler>(String, Action<TOptions>)

IAuthenticationServiceで使用できるAuthenticationSchemeを追加します。

AddScheme<TOptions,THandler>(String, String, Action<TOptions>)

IAuthenticationServiceで使用できるAuthenticationSchemeを追加します。

拡張メソッド

Name 説明
AddApplicationCookie(AuthenticationBuilder)

ID アプリケーション Cookie を追加します。

AddAzureAD(AuthenticationBuilder, Action<AzureADOptions>)
古い.

Azure Active Directory認証をアプリケーションに追加します。

AddAzureAD(AuthenticationBuilder, String, String, String, String, Action<AzureADOptions>)
古い.

Azure Active Directory認証をアプリケーションに追加します。

AddAzureADB2C(AuthenticationBuilder, Action<AzureADB2COptions>)
古い.

Azure Active Directory B2C 認証をアプリケーションに追加します。

AddAzureADB2C(AuthenticationBuilder, String, String, String, String, Action<AzureADB2COptions>)
古い.

Azure Active Directory B2C 認証をアプリケーションに追加します。

AddAzureADB2CBearer(AuthenticationBuilder, Action<AzureADB2COptions>)
古い.

Azure AD B2C アプリケーションの JWT Bearer 認証をアプリに追加します。

AddAzureADB2CBearer(AuthenticationBuilder, String, String, Action<AzureADB2COptions>)
古い.

Azure AD B2C アプリケーションの JWT Bearer 認証をアプリに追加します。

AddAzureADBearer(AuthenticationBuilder, Action<AzureADOptions>)
古い.

Azure Active Directory アプリケーションの JWT Bearer 認証をアプリに追加します。

AddAzureADBearer(AuthenticationBuilder, String, String, Action<AzureADOptions>)
古い.

Azure Active Directory アプリケーションの JWT Bearer 認証をアプリに追加します。

AddBearerToken(AuthenticationBuilder, Action<BearerTokenOptions>)

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

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

AddBearerToken(AuthenticationBuilder, String, Action<BearerTokenOptions>)

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

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

AddBearerToken(AuthenticationBuilder, String)

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

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

AddBearerToken(AuthenticationBuilder)

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

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

AddCertificate(AuthenticationBuilder, Action<CertificateAuthenticationOptions>)

証明書認証を追加します。

証明書認証では、クライアント証明書を検証し、証明書が ClaimsPrincipalに解決されるイベントを発生させる認証ハンドラーを使用します。 証明書認証の詳細については、 https://tools.ietf.org/html/rfc5246#section-7.4.4 を参照してください。

AddCertificate(AuthenticationBuilder, String, Action<CertificateAuthenticationOptions>)

証明書認証を追加します。

証明書認証では、クライアント証明書を検証し、証明書が ClaimsPrincipalに解決されるイベントを発生させる認証ハンドラーを使用します。 証明書認証の詳細については、 https://tools.ietf.org/html/rfc5246#section-7.4.4 を参照してください。

AddCertificate(AuthenticationBuilder, String)

証明書認証を追加します。

証明書認証では、クライアント証明書を検証し、証明書が ClaimsPrincipalに解決されるイベントを発生させる認証ハンドラーを使用します。 証明書認証の詳細については、 https://tools.ietf.org/html/rfc5246#section-7.4.4 を参照してください。

AddCertificate(AuthenticationBuilder)

証明書認証を追加します。

証明書認証では、クライアント証明書を検証し、証明書が ClaimsPrincipalに解決されるイベントを発生させる認証ハンドラーを使用します。 証明書認証の詳細については、 https://tools.ietf.org/html/rfc5246#section-7.4.4 を参照してください。

AddCertificateCache(AuthenticationBuilder, Action<CertificateValidationCacheOptions>)

証明書認証を追加します。

証明書認証では、クライアント証明書を検証し、証明書が ClaimsPrincipalに解決されるイベントを発生させる認証ハンドラーを使用します。 証明書認証の詳細については、 https://tools.ietf.org/html/rfc5246#section-7.4.4 を参照してください。

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

既定のスキームを使用して AuthenticationBuilder に Cookie 認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Cookie 認証では、クライアントに保持されている HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

指定したスキームを使用して AuthenticationBuilder に Cookie 認証を追加します。

Cookie 認証では、クライアントに保持されている HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

指定したスキームを使用して AuthenticationBuilder に Cookie 認証を追加します。

Cookie 認証では、クライアントに保持されている HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, String)

指定したスキームを使用して AuthenticationBuilder に Cookie 認証を追加します。

Cookie 認証では、クライアントに保持されている HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder)

既定のスキームを使用して AuthenticationBuilder に Cookie 認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Cookie 認証では、クライアントに保持されている HTTP Cookie を使用して認証を実行します。

AddExternalCookie(AuthenticationBuilder)

外部ログインに使用される ID Cookie を追加します。

AddFacebook(AuthenticationBuilder, Action<FacebookOptions>)

既定のスキームを使用して、Facebook OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Facebook 認証を使用すると、アプリケーション ユーザーは自分の Facebook アカウントでサインインできます。

AddFacebook(AuthenticationBuilder, String, Action<FacebookOptions>)

既定のスキームを使用して、Facebook OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Facebook 認証を使用すると、アプリケーション ユーザーは自分の Facebook アカウントでサインインできます。

AddFacebook(AuthenticationBuilder, String, String, Action<FacebookOptions>)

既定のスキームを使用して、Facebook OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Facebook 認証を使用すると、アプリケーション ユーザーは自分の Facebook アカウントでサインインできます。

AddFacebook(AuthenticationBuilder)

既定のスキームを使用して、Facebook OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Facebook 認証を使用すると、アプリケーション ユーザーは自分の Facebook アカウントでサインインできます。

AddGoogle(AuthenticationBuilder, Action<GoogleOptions>)

既定のスキームを使用して、Google OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Google 認証を使用すると、アプリケーション ユーザーは自分の Google アカウントでサインインできます。

AddGoogle(AuthenticationBuilder, String, Action<GoogleOptions>)

既定のスキームを使用して、Google OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Google 認証を使用すると、アプリケーション ユーザーは自分の Google アカウントでサインインできます。

AddGoogle(AuthenticationBuilder, String, String, Action<GoogleOptions>)

既定のスキームを使用して、Google OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Google 認証を使用すると、アプリケーション ユーザーは自分の Google アカウントでサインインできます。

AddGoogle(AuthenticationBuilder)

既定のスキームを使用して、Google OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Google 認証を使用すると、アプリケーション ユーザーは自分の Google アカウントでサインインできます。

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

サインイン マネージャーに必要な Cookie 認証を追加します。

AddIdentityCookies(AuthenticationBuilder)

Cookie 認証を追加します。

AddIdentityServerJwt(AuthenticationBuilder)

承認サーバーと共存する API の認証ハンドラーを追加します。

AddJwtBearer(AuthenticationBuilder, Action<JwtBearerOptions>)

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

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

AddJwtBearer(AuthenticationBuilder, String, Action<JwtBearerOptions>)

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

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

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

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

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

AddJwtBearer(AuthenticationBuilder, String)

事前に定義されたスキームを使用して JWT ベアラー認証を有効にします。

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

AddJwtBearer(AuthenticationBuilder)

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

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

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

既定のスキームMicrosoft使用して、AuthenticationBuilderにアカウント OAuth ベースの認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Microsoft Account認証を使用すると、アプリケーション ユーザーは職場、学校、個人のMicrosoft アカウントでサインインできます。

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

既定のスキームMicrosoft使用して、AuthenticationBuilderにアカウント OAuth ベースの認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Microsoft Account認証を使用すると、アプリケーション ユーザーは職場、学校、個人のMicrosoft アカウントでサインインできます。

AddMicrosoftAccount(AuthenticationBuilder, String, String, Action<MicrosoftAccountOptions>)

既定のスキームMicrosoft使用して、AuthenticationBuilderにアカウント OAuth ベースの認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Microsoft Account認証を使用すると、アプリケーション ユーザーは職場、学校、個人のMicrosoft アカウントでサインインできます。

AddMicrosoftAccount(AuthenticationBuilder)

既定のスキームMicrosoft使用して、AuthenticationBuilderにアカウント OAuth ベースの認証を追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Microsoft Account認証を使用すると、アプリケーション ユーザーは職場、学校、個人のMicrosoft アカウントでサインインできます。

AddNegotiate(AuthenticationBuilder, Action<NegotiateOptions>)

既定のスキームを使用してネゴシエート (Windows、Kerberos、NTLM とも呼ばれます) 認証を使用するようにAuthenticationBuilderを構成します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

この認証ハンドラーは、Windows および Linux サーバー上の Kerberos をサポートします。

AddNegotiate(AuthenticationBuilder, String, Action<NegotiateOptions>)

指定した認証スキームを使用してネゴシエート (Windows、Kerberos、NTLM とも呼ばれます) 認証を使用するようにAuthenticationBuilderを構成します。

この認証ハンドラーは、Windows および Linux サーバー上の Kerberos をサポートします。

AddNegotiate(AuthenticationBuilder, String, String, Action<NegotiateOptions>)

指定した認証スキームを使用してネゴシエート (Windows、Kerberos、NTLM とも呼ばれます) 認証を使用するようにAuthenticationBuilderを構成します。

この認証ハンドラーは、Windows および Linux サーバー上の Kerberos をサポートします。

AddNegotiate(AuthenticationBuilder)

AuthenticationSchemeの既定のスキームを使用して、ネゴシエート (Windows、Kerberos、NTLM とも呼ばれます) 認証を使用するようにAuthenticationBuilderを構成します。

この認証ハンドラーは、Windows および Linux サーバー上の Kerberos をサポートします。

AddOAuth(AuthenticationBuilder, String, Action<OAuthOptions>)

指定した認証スキームを使用して、OAuth 2.0 ベースの認証を AuthenticationBuilder に追加します。

AddOAuth(AuthenticationBuilder, String, String, Action<OAuthOptions>)

指定した認証スキームを使用して、OAuth 2.0 ベースの認証を AuthenticationBuilder に追加します。

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, Action<TOptions>)

指定した認証スキームを使用して、OAuth 2.0 ベースの認証を AuthenticationBuilder に追加します。

AddOAuth<TOptions,THandler>(AuthenticationBuilder, String, String, Action<TOptions>)

指定した認証スキームを使用して、OAuth 2.0 ベースの認証を AuthenticationBuilder に追加します。

AddOpenIdConnect(AuthenticationBuilder, Action<OpenIdConnectOptions>)

既定のスキームを使用して、OpenId Connect 認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

OpenID Connect は、OAuth 2.0 プロトコルの上にある ID レイヤーです。 これにより、クライアントは認証されたセッションとエンド ユーザーに関する情報を要求および受信できます。

AddOpenIdConnect(AuthenticationBuilder, String, Action<OpenIdConnectOptions>)

指定したスキームを使用して、OpenId Connect 認証を AuthenticationBuilder に追加します。

OpenID Connect は、OAuth 2.0 プロトコルの上にある ID レイヤーです。 これにより、クライアントは認証されたセッションとエンド ユーザーに関する情報を要求および受信できます。

AddOpenIdConnect(AuthenticationBuilder, String, String, Action<OpenIdConnectOptions>)

指定したスキームを使用して、OpenId Connect 認証を AuthenticationBuilder に追加します。

OpenID Connect は、OAuth 2.0 プロトコルの上にある ID レイヤーです。 これにより、クライアントは認証されたセッションとエンド ユーザーに関する情報を要求および受信できます。

AddOpenIdConnect(AuthenticationBuilder)

既定のスキームを使用して、OpenId Connect 認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

OpenID Connect は、OAuth 2.0 プロトコルの上にある ID レイヤーです。 これにより、クライアントは認証されたセッションとエンド ユーザーに関する情報を要求および受信できます。

AddTwitter(AuthenticationBuilder, Action<TwitterOptions>)

既定のスキームを使用して、Twitter OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Twitter 認証を使用すると、アプリケーション ユーザーは自分の Twitter アカウントでサインインできます。

AddTwitter(AuthenticationBuilder, String, Action<TwitterOptions>)

既定のスキームを使用して、Twitter OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Twitter 認証を使用すると、アプリケーション ユーザーは自分の Twitter アカウントでサインインできます。

AddTwitter(AuthenticationBuilder, String, String, Action<TwitterOptions>)

既定のスキームを使用して、Twitter OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Twitter 認証を使用すると、アプリケーション ユーザーは自分の Twitter アカウントでサインインできます。

AddTwitter(AuthenticationBuilder)

既定のスキームを使用して、Twitter OAuth ベースの認証を AuthenticationBuilder に追加します。 既定のスキームは、 AuthenticationSchemeによって指定されます。

Twitter 認証を使用すると、アプリケーション ユーザーは自分の Twitter アカウントでサインインできます。

AddTwoFactorRememberMeCookie(AuthenticationBuilder)

2 要素の記憶に使用される ID Cookie を追加します。

AddTwoFactorUserIdCookie(AuthenticationBuilder)

2 要素ログインに使用される ID Cookie を追加します。

AddWsFederation(AuthenticationBuilder, Action<WsFederationOptions>)

既定の認証スキーム、表示名、および指定されたオプション構成を使用して、 WsFederationHandler を登録します。

AddWsFederation(AuthenticationBuilder, String, Action<WsFederationOptions>)

指定された認証スキーム、既定の表示名、および指定されたオプション構成を使用して、 WsFederationHandler を登録します。

AddWsFederation(AuthenticationBuilder, String, String, Action<WsFederationOptions>)

指定された認証スキーム、表示名、およびオプション構成を使用して、 WsFederationHandler を登録します。

AddWsFederation(AuthenticationBuilder)

既定の認証スキーム、表示名、およびオプションを使用して、 WsFederationHandler を登録します。

適用対象