Sdílet prostřednictvím


OAuthHandler<TOptions>.CreateTicketAsync Metoda

Definice

Přetížení

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)

Vytvoří ze zadaného tokensobjektu AuthenticationTicket .

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ CreateTicketAsync(System::Security::Claims::ClaimsIdentity ^ identity, Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^ tokens);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> CreateTicketAsync (System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens);
abstract member CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Protected Overridable Function CreateTicketAsync (identity As ClaimsIdentity, properties As AuthenticationProperties, tokens As OAuthTokenResponse) As Task(Of AuthenticationTicket)

Parametry

identity
ClaimsIdentity

Návraty

Platí pro

CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)

Zdroj:
OAuthHandler.cs
Zdroj:
OAuthHandler.cs

Vytvoří ze zadaného tokensobjektu AuthenticationTicket .

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ CreateTicketAsync(System::Security::Claims::ClaimsIdentity ^ identity, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^ tokens);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> CreateTicketAsync (System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse tokens);
abstract member CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Protected Overridable Function CreateTicketAsync (identity As ClaimsIdentity, properties As AuthenticationProperties, tokens As OAuthTokenResponse) As Task(Of AuthenticationTicket)

Parametry

identity
ClaimsIdentity

Hodnota ClaimsIdentity

Návraty

Hodnota AuthenticationTicket

Platí pro