CookieSignedInContext Class

Context object passed to the ICookieAuthenticationEvents method SignedIn.

Namespace
Microsoft.AspNetCore.Authentication.Cookies
Assemblies
  • Microsoft.AspNetCore.Authentication.Cookies

Syntax

public class CookieSignedInContext : BaseCookieContext
class Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext

Constructors

CookieSignedInContext(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Builder.CookieAuthenticationOptions, System.String, System.Security.Claims.ClaimsPrincipal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)

Creates a new instance of the context object.

Arguments:
public CookieSignedInContext(HttpContext context, CookieAuthenticationOptions options, string authenticationScheme, ClaimsPrincipal principal, AuthenticationProperties properties)

Properties

Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext.AuthenticationScheme

The name of the AuthenticationScheme creating a cookie

Return type:System.String
public string AuthenticationScheme { get; }
Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext.Principal

Contains the claims that were converted into the outgoing cookie.

Return type:System.Security.Claims.ClaimsPrincipal
public ClaimsPrincipal Principal { get; }
Microsoft.AspNetCore.Authentication.Cookies.CookieSignedInContext.Properties

Contains the extra data that was contained in the outgoing cookie.

Return type:Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties
public AuthenticationProperties Properties { get; }