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)


<ExtensionAttribute> _
Public Shared Function CreateTwoFactorRememberBrowserIdentity ( _
    manager As IAuthenticationManager, _
    userId As String _
) As ClaimsIdentity
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
static ClaimsIdentity^ CreateTwoFactorRememberBrowserIdentity(
    IAuthenticationManager^ manager, 
    String^ userId
static member CreateTwoFactorRememberBrowserIdentity : 
        manager:IAuthenticationManager * 
        userId:string -> ClaimsIdentity
public static function CreateTwoFactorRememberBrowserIdentity(
    manager : IAuthenticationManager, 
    userId : String
) : ClaimsIdentity


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 or

See Also


AuthenticationManagerExtensions Class

Microsoft.Owin.Security Namespace

Other Resources

ASP.NET Identity