Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​AspNetCore.​Authentication.​PolicySchemeHandler
Assembly: Microsoft.AspNetCore.Authentication
Inheritance: object → AuthenticationHandler<​PolicySchemeOptions> → SignOutAuthenticationHandler<​PolicySchemeOptions> → SignInAuthenticationHandler<​PolicySchemeOptions> → PolicySchemeHandler
Implemented Interfaces
- IAuthenticationSignInHandler (Inherits: IAuthenticationSignOutHandlerIAuthenticationHandler) Implemented by: SignInAuthenticationHandler<​PolicySchemeOptions>
PolicySchemes are used to redirect authentication methods to another scheme.
Properties
public
AuthenticationScheme
Scheme
public
PolicySchemeOptions
Options
protected
Http.​HttpContext
Context
protected
Http.​HttpRequest
Request
protected
Http.​HttpResponse
Response
protected
Http.​PathString
OriginalPath
protected
Http.​PathString
OriginalPathBase
Logger
protected
System.​Text.​Encodings.​Web.​UrlEncoder
UrlEncoder
protected
ISystemClock
Clock
protected
System.​TimeProvider
TimeProvider
protected
Extensions.​Options.​IOptionsMonitor<​PolicySchemeOptions>
OptionsMonitor
protected
object
Events
protected
string
ClaimsIssuer
protected
string
CurrentUri
Methods
HandleSignInAsync​(System.​Security.​Claims.​ClaimsPrincipal user,
AuthenticationProperties? properties)
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateAsync​()
SignInAsync​(System.​Security.​Claims.​ClaimsPrincipal user,
AuthenticationProperties? properties)
Inherited from SignInAuthenticationHandler<​PolicySchemeOptions>
SignOutAsync​(AuthenticationProperties? properties)
Inherited from SignOutAuthenticationHandler<​PolicySchemeOptions>
InitializeAsync​(AuthenticationScheme scheme,
Http.​HttpContext context)
Inherited from AuthenticationHandler<​PolicySchemeOptions>
InitializeEventsAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
protected
System.​Threading.​Tasks.​Task<​object>
CreateEventsAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
InitializeHandlerAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
protected
string
BuildRedirectUri​(string targetPath)
Inherited from AuthenticationHandler<​PolicySchemeOptions>
protected
string
ResolveTarget​(string scheme)
Inherited from AuthenticationHandler<​PolicySchemeOptions>
public
System.​Threading.​Tasks.​Task<​AuthenticateResult>
AuthenticateAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateOnceAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateOnceSafeAsync​()
Inherited from AuthenticationHandler<​PolicySchemeOptions>
ChallengeAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​PolicySchemeOptions>
ForbidAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​PolicySchemeOptions>
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object