CookieAuthenticationExtensions.UseCookieAuthentication Method

 

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static UseCookieAuthentication(IAppBuilder, CookieAuthenticationOptions)

Adds a cookie-based authentication middleware to your web application pipeline.

System_CAPS_pubmethodSystem_CAPS_static UseCookieAuthentication(IAppBuilder, CookieAuthenticationOptions, PipelineStage)

Adds a cookie-based authentication middleware to your web application pipeline.

See Also

CookieAuthenticationExtensions Class
Owin Namespace

Return to top

CookieAuthenticationExtensions.UseCookieAuthentication Method (IAppBuilder, CookieAuthenticationOptions)

Adds a cookie-based authentication middleware to your web application pipeline.

Syntax

public static IAppBuilder UseCookieAuthentication(
    this IAppBuilder app,
    CookieAuthenticationOptions options
)
public:
[ExtensionAttribute]
static IAppBuilder^ UseCookieAuthentication(
    IAppBuilder^ app,
    CookieAuthenticationOptions^ options
)
static member UseCookieAuthentication : 
        app:IAppBuilder *
        options:CookieAuthenticationOptions -> IAppBuilder
<ExtensionAttribute>
Public Shared Function UseCookieAuthentication (
    app As IAppBuilder,
    options As CookieAuthenticationOptions
) As IAppBuilder

Parameters

  • app
    Type: Owin.IAppBuilder

    The IAppBuilder passed to your configuration method

Return Value

Type: Owin.IAppBuilder

The original app parameter

Return to top

CookieAuthenticationExtensions.UseCookieAuthentication Method (IAppBuilder, CookieAuthenticationOptions, PipelineStage)

Adds a cookie-based authentication middleware to your web application pipeline.

Syntax

public static IAppBuilder UseCookieAuthentication(
    this IAppBuilder app,
    CookieAuthenticationOptions options,
    PipelineStage stage
)
public:
[ExtensionAttribute]
static IAppBuilder^ UseCookieAuthentication(
    IAppBuilder^ app,
    CookieAuthenticationOptions^ options,
    PipelineStage stage
)
static member UseCookieAuthentication : 
        app:IAppBuilder *
        options:CookieAuthenticationOptions *
        stage:PipelineStage -> IAppBuilder
<ExtensionAttribute>
Public Shared Function UseCookieAuthentication (
    app As IAppBuilder,
    options As CookieAuthenticationOptions,
    stage As PipelineStage
) As IAppBuilder

Parameters

  • app
    Type: Owin.IAppBuilder

    The IAppBuilder passed to your configuration method

Return Value

Type: Owin.IAppBuilder

The original app parameter

Return to top