AuthenticationBuilder クラス

定義

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

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

コンストラクター

AuthenticationBuilder(IServiceCollection)

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

プロパティ

Services

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

メソッド

AddPolicyScheme(String, String, Action<PolicySchemeOptions>)

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

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

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

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

AuthenticationSchemeによってIAuthenticationService使用できる を追加します。

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

AuthenticationSchemeによってIAuthenticationService使用できる を追加します。

拡張メソッド

AddIdentityServerJwt(AuthenticationBuilder)

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

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

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

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

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

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

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

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

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

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 認証を追加します。

AddApplicationCookie(AuthenticationBuilder)

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

AddExternalCookie(AuthenticationBuilder)

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

AddIdentityCookies(AuthenticationBuilder)

Cookie 認証を追加します。

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

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

AddTwoFactorRememberMeCookie(AuthenticationBuilder)

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

AddTwoFactorUserIdCookie(AuthenticationBuilder)

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

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)すことによって取得できます。

AddCertificate(AuthenticationBuilder)

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

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

AddCertificate(AuthenticationBuilder, 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, String, Action<CertificateAuthenticationOptions>)

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

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

AddCertificateCache(AuthenticationBuilder, Action<CertificateValidationCacheOptions>)

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

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

AddCookie(AuthenticationBuilder)

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

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

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

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

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

AddCookie(AuthenticationBuilder, String)

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

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

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

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

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

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

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

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

AddFacebook(AuthenticationBuilder)

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

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

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 アカウントでサインインできます。

AddGoogle(AuthenticationBuilder)

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

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

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 アカウントでサインインできます。

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 実行します。

AddMicrosoftAccount(AuthenticationBuilder)

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

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

AddMicrosoftAccount(AuthenticationBuilder, Action<MicrosoftAccountOptions>)

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

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

AddMicrosoftAccount(AuthenticationBuilder, String, Action<MicrosoftAccountOptions>)

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

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

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

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

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

AddNegotiate(AuthenticationBuilder)

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

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

AddNegotiate(AuthenticationBuilder, Action<NegotiateOptions>)

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

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

AddNegotiate(AuthenticationBuilder, String, Action<NegotiateOptions>)

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

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

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

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

この認証ハンドラーは、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)

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

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

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 レイヤーです。 これにより、クライアントは、認証されたセッションとエンド ユーザーに関する情報を要求および受信できます。

AddTwitter(AuthenticationBuilder)

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

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

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 アカウントでサインインできます。

AddWsFederation(AuthenticationBuilder)

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

AddWsFederation(AuthenticationBuilder, Action<WsFederationOptions>)

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

AddWsFederation(AuthenticationBuilder, String, Action<WsFederationOptions>)

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

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

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

適用対象