TwitterHandler.CreateTicketAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ CreateTicketAsync(System::Security::Claims::ClaimsIdentity ^ identity, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Authentication::Twitter::AccessToken ^ token, Newtonsoft::Json::Linq::JObject ^ user);
C#
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> CreateTicketAsync (System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.Twitter.AccessToken token, Newtonsoft.Json.Linq.JObject user);
abstract member CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.Twitter.AccessToken * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.Twitter.AccessToken * Newtonsoft.Json.Linq.JObject -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Protected Overridable Function CreateTicketAsync (identity As ClaimsIdentity, properties As AuthenticationProperties, token As AccessToken, user As JObject) As Task(Of AuthenticationTicket)
Parameters
- identity
- ClaimsIdentity
- properties
- AuthenticationProperties
- token
- AccessToken
- user
- Newtonsoft.Json.Linq.JObject
Returns
Applies to
ASP.NET Core 2.2 and ASP.NET Core 2.1
Product | Versions |
---|---|
ASP.NET Core | 2.1, 2.2 |
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
- Source:
- TwitterHandler.cs
Creates an AuthenticationTicket from the specified token
.
protected:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationTicket ^> ^ CreateTicketAsync(System::Security::Claims::ClaimsIdentity ^ identity, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, Microsoft::AspNetCore::Authentication::Twitter::AccessToken ^ token, System::Text::Json::JsonElement user);
C#
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> CreateTicketAsync (System.Security.Claims.ClaimsIdentity identity, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, Microsoft.AspNetCore.Authentication.Twitter.AccessToken token, System.Text.Json.JsonElement user);
abstract member CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.Twitter.AccessToken * System.Text.Json.JsonElement -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
override this.CreateTicketAsync : System.Security.Claims.ClaimsIdentity * Microsoft.AspNetCore.Authentication.AuthenticationProperties * Microsoft.AspNetCore.Authentication.Twitter.AccessToken * System.Text.Json.JsonElement -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket>
Protected Overridable Function CreateTicketAsync (identity As ClaimsIdentity, properties As AuthenticationProperties, token As AccessToken, user As JsonElement) As Task(Of AuthenticationTicket)
Parameters
- identity
- ClaimsIdentity
The ClaimsIdentity.
- properties
- AuthenticationProperties
- token
- AccessToken
The AccessToken.
- user
- JsonElement
The JsonElement for the user.
Returns
The AuthenticationTicket.
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |