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.​Cookies.​CookieAuthenticationHandler
Assembly: Microsoft.AspNetCore.Authentication.Cookies
Inheritance: object → AuthenticationHandler<​CookieAuthenticationOptions> → SignOutAuthenticationHandler<​CookieAuthenticationOptions> → SignInAuthenticationHandler<​CookieAuthenticationOptions> → CookieAuthenticationHandler
Implemented Interfaces
- IAuthenticationSignInHandler (Inherits: IAuthenticationSignOutHandlerIAuthenticationHandler) Implemented by: SignInAuthenticationHandler<​CookieAuthenticationOptions>
Implementation for the cookie-based authentication handler.
Properties
protected
CookieAuthenticationEvents
Events
The handler calls methods on the events which give the application control at certain points where processing is occurring.
If it is not provided a default instance is supplied which does nothing when the methods are called.
public
AuthenticationScheme
Scheme
public
CookieAuthenticationOptions
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<​CookieAuthenticationOptions>
OptionsMonitor
protected
object
Events
protected
string
ClaimsIssuer
protected
string
CurrentUri
Methods
InitializeHandlerAsync​()
protected
System.​Threading.​Tasks.​Task<​object>
CreateEventsAsync​()
Creates a new instance of the events instance.
Returns A new instance of the events instance.
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateAsync​()
FinishResponseAsync​()
HandleSignInAsync​(System.​Security.​Claims.​ClaimsPrincipal user,
AuthenticationProperties? properties)
SignInAsync​(System.​Security.​Claims.​ClaimsPrincipal user,
AuthenticationProperties? properties)
Inherited from SignInAuthenticationHandler<​CookieAuthenticationOptions>
SignOutAsync​(AuthenticationProperties? properties)
Inherited from SignOutAuthenticationHandler<​CookieAuthenticationOptions>
InitializeAsync​(AuthenticationScheme scheme,
Http.​HttpContext context)
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
InitializeEventsAsync​()
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
protected
string
BuildRedirectUri​(string targetPath)
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
protected
string
ResolveTarget​(string scheme)
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
public
System.​Threading.​Tasks.​Task<​AuthenticateResult>
AuthenticateAsync​()
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateOnceAsync​()
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
protected
System.​Threading.​Tasks.​Task<​AuthenticateResult>
HandleAuthenticateOnceSafeAsync​()
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
ChallengeAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
ForbidAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​CookieAuthenticationOptions>
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