OpenIdConnectAuthenticationExtensions.UseOpenIdConnectAuthentication Method
Namespace: Owin
Assembly: Microsoft.Owin.Security.OpenIdConnect (in Microsoft.Owin.Security.OpenIdConnect.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
UseOpenIdConnectAuthentication(IAppBuilder, OpenIdConnectAuthenticationOptions) | Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime. |
![]() ![]() |
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.IAppBuilderThe IAppBuilder passed to the configuration method
openIdConnectOptions
Type: Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptionsA OpenIdConnectAuthenticationOptions contains settings for obtaining identities using the OpenIdConnect protocol.
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.IAppBuilderThe IAppBuilder passed to the configuration method
clientId
Type: System.StringThe application identifier.
metadataAddress
Type: System.StringThe discovery endpoint for obtaining metadata.
Return Value
Type: Owin.IAppBuilder
The updated IAppBuilder
Return to top