IAuthHandler.GetAuthenticationTicketAsync method
Generates an AuthenticationTicket for the specified user and authentication scheme, issuing additional claims as configured.
public static Task<AuthenticationTicket> GetAuthenticationTicketAsync(HttpContext Context,
string user, IAuthenticationCommonOptions Options, AuthenticationScheme Scheme,
string? alias = null)
parameter | description |
---|---|
Context | The current HTTP context. |
user | The user name for whom the ticket is being generated. |
Options | Authentication options including claim issuance delegates. |
Scheme | The authentication scheme to use. |
alias | An optional alias for the user. |
Return Value
An AuthenticationTicket representing the authenticated user.
See Also
- interface IAuthenticationCommonOptions
- interface IAuthHandler
- namespace Kestrun.Authentication