AuthenticationTokenExtensions.GetTokenAsync AuthenticationTokenExtensions.GetTokenAsync AuthenticationTokenExtensions.GetTokenAsync Method

Definition

Overloads

GetTokenAsync(AuthenticationManager, String) GetTokenAsync(AuthenticationManager, String) GetTokenAsync(AuthenticationManager, String)
GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String)

Extension method for getting the value of an authentication token.

GetTokenAsync(AuthenticationManager, String, String) GetTokenAsync(AuthenticationManager, String, String) GetTokenAsync(AuthenticationManager, String, String)
GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Extension method for getting the value of an authentication token.

GetTokenAsync(AuthenticationManager, String) GetTokenAsync(AuthenticationManager, String) GetTokenAsync(AuthenticationManager, String)

public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Http.Authentication.AuthenticationManager manager, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (manager As AuthenticationManager, tokenName As String) As Task(Of String)
Parameters
tokenName
String String String
Returns

GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String) GetTokenAsync(IAuthenticationService, HttpContext, String)

Extension method for getting the value of an authentication token.

public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Authentication.IAuthenticationService * Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (auth As IAuthenticationService, context As HttpContext, tokenName As String) As Task(Of String)
Parameters
tokenName
String String String

The name of the token.

Returns

The value of the token.

GetTokenAsync(AuthenticationManager, String, String) GetTokenAsync(AuthenticationManager, String, String) GetTokenAsync(AuthenticationManager, String, String)

[System.Runtime.CompilerServices.AsyncStateMachine(typeof(Microsoft.AspNetCore.Authentication.AuthenticationTokenExtensions/<GetTokenAsync>d__7))]
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Http.Authentication.AuthenticationManager manager, string signInScheme, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Http.Authentication.AuthenticationManager * string * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (manager As AuthenticationManager, signInScheme As String, tokenName As String) As Task(Of String)
Parameters
signInScheme
String String String
tokenName
String String String
Returns

GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String) GetTokenAsync(IAuthenticationService, HttpContext, String, String)

Extension method for getting the value of an authentication token.

[System.Runtime.CompilerServices.AsyncStateMachine(typeof(Microsoft.AspNetCore.Authentication.AuthenticationTokenExtensions/<GetTokenAsync>d__7))]
public static System.Threading.Tasks.Task<string> GetTokenAsync (this Microsoft.AspNetCore.Authentication.IAuthenticationService auth, Microsoft.AspNetCore.Http.HttpContext context, string scheme, string tokenName);
static member GetTokenAsync : Microsoft.AspNetCore.Authentication.IAuthenticationService * Microsoft.AspNetCore.Http.HttpContext * string * string -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function GetTokenAsync (auth As IAuthenticationService, context As HttpContext, scheme As String, tokenName As String) As Task(Of String)
Parameters
scheme
String String String

The name of the authentication scheme.

tokenName
String String String

The name of the token.

Returns

The value of the token.

Applies to