AuthenticationTicket 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AuthenticationTicket(ClaimsPrincipal, String)
- Source:
- AuthenticationTicket.cs
- Source:
- AuthenticationTicket.cs
- Source:
- AuthenticationTicket.cs
初始化 AuthenticationTicket 类的新实例。
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)
参数
- principal
- ClaimsPrincipal
表示 ClaimsPrincipal 经过身份验证的用户的 。
- authenticationScheme
- String
负责此票证的身份验证方案。
适用于
AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)
- Source:
- AuthenticationTicket.cs
- Source:
- AuthenticationTicket.cs
- Source:
- AuthenticationTicket.cs
初始化 AuthenticationTicket 类的新实例。
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)
参数
- principal
- ClaimsPrincipal
表示 ClaimsPrincipal 经过身份验证的用户的 。
- properties
- AuthenticationProperties
用户或运行时可以使用的其他属性。
- authenticationScheme
- String
负责此票证的身份验证方案。
适用于
AuthenticationTicket(ClaimsPrincipal, AuthenticationProperties, String)
初始化 AuthenticationTicket 类的新实例。
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)
参数
- principal
- ClaimsPrincipal
表示 ClaimsPrincipal 经过身份验证的用户的 。
- properties
- AuthenticationProperties
用户或运行时可以使用的其他属性。
- authenticationScheme
- String
负责此票证的身份验证中间件。