View Source
Class AuthenticationManagerExtensions
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public static class AuthenticationManagerExtensions
Methods
View Source
GetAutoLoginProvider(IAuthenticationManager)
Returns the authentication type for the last registered external login (oauth) provider that specifies an auto-login redirect option
Declaration
public static string GetAutoLoginProvider(this IAuthenticationManager manager)
Parameters
Type |
Name |
Description |
IAuthenticationManager |
manager |
|
Returns
Type |
Description |
System.String |
|
View Source
GetBackOfficeExternalLoginProviders(IAuthenticationManager)
Declaration
public static IEnumerable<AuthenticationDescription> GetBackOfficeExternalLoginProviders(this IAuthenticationManager manager)
Parameters
Type |
Name |
Description |
IAuthenticationManager |
manager |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<AuthenticationDescription> |
|
View Source
GetExternalLoginInfoAsync(IAuthenticationManager, String)
Extracts login info out of an external identity
Declaration
public static async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(this IAuthenticationManager manager, string authenticationType)
Parameters
Type |
Name |
Description |
IAuthenticationManager |
manager |
|
System.String |
authenticationType |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ExternalLoginInfo> |
|
View Source
GetExternalLoginInfoAsync(IAuthenticationManager, String, String, String)
Extracts login info out of an external identity
Declaration
public static async Task<ExternalLoginInfo> GetExternalLoginInfoAsync(this IAuthenticationManager manager, string authenticationType, string xsrfKey, string expectedValue)
Parameters
Type |
Name |
Description |
IAuthenticationManager |
manager |
|
System.String |
authenticationType |
|
System.String |
xsrfKey |
key that will be used to find the userId to verify
|
System.String |
expectedValue |
the value expected to be found using the xsrfKey in the AuthenticationResult.Properties
dictionary
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ExternalLoginInfo> |
|
View Source
HasDenyLocalLogin(IAuthenticationManager)
Declaration
public static bool HasDenyLocalLogin(this IAuthenticationManager manager)
Parameters
Type |
Name |
Description |
IAuthenticationManager |
manager |
|
Returns
Type |
Description |
System.Boolean |
|