AuthenticationTokenExtensions Class¶
- Namespace
Microsoft.AspNetCore.Authentication
- Assemblies
- Microsoft.AspNetCore.Authentication
Syntax¶
public class AuthenticationTokenExtensions
-
class
Microsoft.AspNetCore.Authentication.
AuthenticationTokenExtensions
Methods¶
-
GetTokenAsync
(Microsoft.AspNetCore.Http.Authentication.AuthenticationManager, System.String)¶ Return type: System.Threading.Tasks.Task<System.String> public static Task<string> GetTokenAsync(this AuthenticationManager manager, string tokenName)
-
GetTokenAsync
(Microsoft.AspNetCore.Http.Authentication.AuthenticationManager, System.String, System.String) Return type: System.Threading.Tasks.Task<System.String> public static Task<string> GetTokenAsync(this AuthenticationManager manager, string signInScheme, string tokenName)
-
GetTokenValue
(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties, System.String)¶ Return type: System.String public static string GetTokenValue(this AuthenticationProperties properties, string tokenName)
-
GetTokens
(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)¶ Return type: System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationToken> public static IEnumerable<AuthenticationToken> GetTokens(this AuthenticationProperties properties)
-
StoreTokens
(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.AuthenticationToken>)¶ public static void StoreTokens(this AuthenticationProperties properties, IEnumerable<AuthenticationToken> tokens)
-