AuthenticationManagerExtensions.CreateTwoFactorRememberBrowserIdentity Method

Creates a TwoFactorRememberBrowser cookie for a user.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateTwoFactorRememberBrowserIdentity ( _
    manager As IAuthenticationManager, _
    userId As String _
) As ClaimsIdentity
'Usage
Dim manager As IAuthenticationManager 
Dim userId As String 
Dim returnValue As ClaimsIdentity 

returnValue = manager.CreateTwoFactorRememberBrowserIdentity(userId)
public static ClaimsIdentity CreateTwoFactorRememberBrowserIdentity(
    this IAuthenticationManager manager,
    string userId
)
[ExtensionAttribute]
public:
static ClaimsIdentity^ CreateTwoFactorRememberBrowserIdentity(
    IAuthenticationManager^ manager, 
    String^ userId
)
static member CreateTwoFactorRememberBrowserIdentity : 
        manager:IAuthenticationManager * 
        userId:string -> ClaimsIdentity
public static function CreateTwoFactorRememberBrowserIdentity(
    manager : IAuthenticationManager, 
    userId : String
) : ClaimsIdentity

Parameters

Return Value

Type: ClaimsIdentity
The claims identity.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAuthenticationManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also

Reference

AuthenticationManagerExtensions Class

Microsoft.Owin.Security Namespace

Other Resources

ASP.NET Identity