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: - context (Microsoft.AspNetCore.Http.HttpContext) – The HTTP request context
- options (Microsoft.AspNetCore.Builder.CookieAuthenticationOptions) – The middleware options
- authenticationScheme (System.String) – Initializes AuthenticationScheme property
- principal (System.Security.Claims.ClaimsPrincipal) – Initializes Principal property
- properties (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties) – Initializes Properties property
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; }
-