Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds the OpenIdConnectAuthenticationMiddleware into the OWIN runtime.
Namespace: Owin
Assembly: Microsoft.Owin.Security.OpenIdConnect (in Microsoft.Owin.Security.OpenIdConnect.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function UseOpenIdConnectAuthentication ( _
app As IAppBuilder, _
openIdConnectOptions As OpenIdConnectAuthenticationOptions _
) As IAppBuilder
'Usage
Dim app As IAppBuilder
Dim openIdConnectOptions As OpenIdConnectAuthenticationOptions
Dim returnValue As IAppBuilder
returnValue = app.UseOpenIdConnectAuthentication(openIdConnectOptions)
public static IAppBuilder UseOpenIdConnectAuthentication(
this IAppBuilder app,
OpenIdConnectAuthenticationOptions openIdConnectOptions
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseOpenIdConnectAuthentication(
IAppBuilder^ app,
OpenIdConnectAuthenticationOptions^ openIdConnectOptions
)
static member UseOpenIdConnectAuthentication :
app:IAppBuilder *
openIdConnectOptions:OpenIdConnectAuthenticationOptions -> IAppBuilder
public static function UseOpenIdConnectAuthentication(
app : IAppBuilder,
openIdConnectOptions : OpenIdConnectAuthenticationOptions
) : IAppBuilder
Parameters
- app
Type: IAppBuilder
The IAppBuilder passed to the configuration method
- openIdConnectOptions
Type: Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions
A OpenIdConnectAuthenticationOptions contains settings for obtaining identities using the OpenIdConnect protocol.
Return Value
Type: IAppBuilder
The updated IAppBuilder
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
Reference
OpenIdConnectAuthenticationExtensions Class