Dela via


AuthenticationTicket Constructors

Definition

Overloads

AuthenticationTicket(ClaimsPrincipal, String)

Initializes a new instance of the AuthenticationTicket class

AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)

Initializes a new instance of the AuthenticationTicket class

AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)

Initializes a new instance of the AuthenticationTicket class

AuthenticationTicket(ClaimsPrincipal, String)

Source:
AuthenticationTicket.cs
Source:
AuthenticationTicket.cs
Source:
AuthenticationTicket.cs

Initializes a new instance of the AuthenticationTicket class

public:
 AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, authenticationScheme As String)

Parameters

principal
ClaimsPrincipal

the ClaimsPrincipal that represents the authenticated user.

authenticationScheme
String

the authentication scheme that was responsible for this ticket.

Applies to

AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)

Source:
AuthenticationTicket.cs
Source:
AuthenticationTicket.cs
Source:
AuthenticationTicket.cs

Initializes a new instance of the AuthenticationTicket class

public:
 AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, string authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, properties As AuthenticationProperties, authenticationScheme As String)

Parameters

principal
ClaimsPrincipal

the ClaimsPrincipal that represents the authenticated user.

properties
AuthenticationProperties

additional properties that can be consumed by the user or runtime.

authenticationScheme
String

the authentication scheme that was responsible for this ticket.

Applies to

AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)

Initializes a new instance of the AuthenticationTicket class

public:
 AuthenticationTicket(System::Security::Claims::ClaimsPrincipal ^ principal, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, System::String ^ authenticationScheme);
public AuthenticationTicket (System.Security.Claims.ClaimsPrincipal principal, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, string authenticationScheme);
new Microsoft.AspNetCore.Authentication.AuthenticationTicket : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> Microsoft.AspNetCore.Authentication.AuthenticationTicket
Public Sub New (principal As ClaimsPrincipal, properties As AuthenticationProperties, authenticationScheme As String)

Parameters

principal
ClaimsPrincipal

the ClaimsPrincipal that represents the authenticated user.

properties
AuthenticationProperties

additional properties that can be consumed by the user or runtime.

authenticationScheme
String

the authentication middleware that was responsible for this ticket.

Applies to