AppBuilderSecurityExtensions.GetDefaultSignInAsAuthenticationType Method

Returns the previously set AuthenticationType that external sign in middleware should use when the browser navigates back to their return url.

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


<ExtensionAttribute> _
Public Shared Function GetDefaultSignInAsAuthenticationType ( _
    app As IAppBuilder _
) As String
Dim app As IAppBuilder 
Dim returnValue As String 

returnValue = app.GetDefaultSignInAsAuthenticationType()
public static string GetDefaultSignInAsAuthenticationType(
    this IAppBuilder app
static String^ GetDefaultSignInAsAuthenticationType(
    IAppBuilder^ app
static member GetDefaultSignInAsAuthenticationType : 
        app:IAppBuilder -> string
public static function GetDefaultSignInAsAuthenticationType(
    app : IAppBuilder
) : String


  • app
    Type: IAppBuilder
    App builder passed to the application startup code

Return Value

Type: System.String
Returns String.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see b8020aae-374d-46a9-bcb7-8cc2390b93b6 or 175ce3ff-9bbf-4e64-8421-faeb81a0bb51.

See Also


AppBuilderSecurityExtensions Class

Microsoft.Owin.Security Namespace