OpenIdConnectAuthenticationExtensions.UseOpenIdConnectAuthentication Method

 

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static UseOpenIdConnectAuthentication(IAppBuilder, OpenIdConnectAuthenticationOptions)

Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime.

System_CAPS_pubmethodSystem_CAPS_static UseOpenIdConnectAuthentication(IAppBuilder, String, String)

Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime.

See Also

OpenIdConnectAuthenticationExtensions Class
Owin Namespace

Return to top

OpenIdConnectAuthenticationExtensions.UseOpenIdConnectAuthentication Method (IAppBuilder, OpenIdConnectAuthenticationOptions)

Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime.

Syntax

public static IAppBuilder UseOpenIdConnectAuthentication(
    this IAppBuilder app,
    OpenIdConnectAuthenticationOptions openIdConnectOptions
)
public:
[ExtensionAttribute]
static IAppBuilder^ UseOpenIdConnectAuthentication(
    IAppBuilder^ app,
    OpenIdConnectAuthenticationOptions^ openIdConnectOptions
)
static member UseOpenIdConnectAuthentication : 
        app:IAppBuilder *
        openIdConnectOptions:OpenIdConnectAuthenticationOptions -> IAppBuilder
<ExtensionAttribute>
Public Shared Function UseOpenIdConnectAuthentication (
    app As IAppBuilder,
    openIdConnectOptions As OpenIdConnectAuthenticationOptions
) As IAppBuilder

Parameters

  • app
    Type: Owin.IAppBuilder

    The IAppBuilder passed to the configuration method

Return Value

Type: Owin.IAppBuilder

The updated IAppBuilder

Return to top

OpenIdConnectAuthenticationExtensions.UseOpenIdConnectAuthentication Method (IAppBuilder, String, String)

Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime.

Syntax

public static IAppBuilder UseOpenIdConnectAuthentication(
    this IAppBuilder app,
    string clientId,
    string metadataAddress
)
public:
[ExtensionAttribute]
static IAppBuilder^ UseOpenIdConnectAuthentication(
    IAppBuilder^ app,
    String^ clientId,
    String^ metadataAddress
)
static member UseOpenIdConnectAuthentication : 
        app:IAppBuilder *
        clientId:string *
        metadataAddress:string -> IAppBuilder
<ExtensionAttribute>
Public Shared Function UseOpenIdConnectAuthentication (
    app As IAppBuilder,
    clientId As String,
    metadataAddress As String
) As IAppBuilder

Parameters

  • app
    Type: Owin.IAppBuilder

    The IAppBuilder passed to the configuration method

  • metadataAddress
    Type: System.String

    The discovery endpoint for obtaining metadata.

Return Value

Type: Owin.IAppBuilder

The updated IAppBuilder

Return to top