AuthenticationManagerExtensions Class

 

Provides extension methods on IAuthenticationManager that add methods for using the default application and external authentication type constants.

Namespace:   Microsoft.Owin.Security
Assembly:  Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.AuthenticationManagerExtensions

Syntax

public static class AuthenticationManagerExtensions
[ExtensionAttribute]
public ref class AuthenticationManagerExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type AuthenticationManagerExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class AuthenticationManagerExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateTwoFactorRememberBrowserIdentity(IAuthenticationManager, String)

Creates a TwoFactorRememberBrowser cookie for a user.

System_CAPS_pubmethodSystem_CAPS_static GetExternalAuthenticationTypes(IAuthenticationManager)

Returns the authentication types, which are considered external because they have captions.

System_CAPS_pubmethodSystem_CAPS_static GetExternalIdentity(IAuthenticationManager, String)

Return the identity associated with the default external authentication type

System_CAPS_pubmethodSystem_CAPS_static GetExternalIdentityAsync(IAuthenticationManager, String)

Asynchronously returns the identity associated with the default external authentication type.

System_CAPS_pubmethodSystem_CAPS_static GetExternalLoginInfo(IAuthenticationManager)

Extracts the login information out of an external identity.

System_CAPS_pubmethodSystem_CAPS_static GetExternalLoginInfo(IAuthenticationManager, String, String)

Extracts the login information out of an external identity.

System_CAPS_pubmethodSystem_CAPS_static GetExternalLoginInfoAsync(IAuthenticationManager)

Asynchronously extracts the login information out of an external identity.

System_CAPS_pubmethodSystem_CAPS_static GetExternalLoginInfoAsync(IAuthenticationManager, String, String)

Asynchronously extracts the login information out of an external identity.

System_CAPS_pubmethodSystem_CAPS_static TwoFactorBrowserRemembered(IAuthenticationManager, String)

Returns true if there is a TwoFactorRememberBrowser cookie for a user

System_CAPS_pubmethodSystem_CAPS_static TwoFactorBrowserRememberedAsync(IAuthenticationManager, String)

Asynchronously determines whether there is a TwoFactorRememberBrowser cookie for a user.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Owin.Security Namespace
ASP.NET Identity

Return to top