AuthenticationService クラス

定義

IAuthenticationService の実装。

public ref class AuthenticationService : Microsoft::AspNetCore::Authentication::IAuthenticationService
public class AuthenticationService : Microsoft.AspNetCore.Authentication.IAuthenticationService
type AuthenticationService = class
    interface IAuthenticationService
Public Class AuthenticationService
Implements IAuthenticationService
継承
AuthenticationService
実装

コンストラクター

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation)

コンストラクターです。

AuthenticationService(IAuthenticationSchemeProvider, IAuthenticationHandlerProvider, IClaimsTransformation, IOptions<AuthenticationOptions>)

コンストラクターです。

プロパティ

Handlers

IAuthenticationHandler インスタンスを解決するために使用されます。

Options

AuthenticationOptions

Schemes

AuthenticationSchemes を参照するために使用されます。

Transform

要求変換に使用されます。

メソッド

AuthenticateAsync(HttpContext, String)

指定した認証スキームに対して認証します。

ChallengeAsync(HttpContext, String, AuthenticationProperties)

指定した認証スキームにチャレンジします。

ForbidAsync(HttpContext, String, AuthenticationProperties)

指定した認証スキームを禁止します。

SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

指定した認証スキームのプリンシパルにサインインします。

SignOutAsync(HttpContext, String, AuthenticationProperties)

指定した認証スキームをサインアウトします。

拡張メソッド

GetTokenAsync(IAuthenticationService, HttpContext, String)

指定した認証スキームを使用して要求を認証し、トークンの値を返します。

GetTokenAsync(IAuthenticationService, HttpContext, String, String)

指定した認証スキームを使用して要求を認証し、トークンの値を返します。

適用対象