OpenIdConnectAuthenticationExtensions.UseOpenIdConnectAuthentication Method (IAppBuilder, String, String)
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, _
clientId As String, _
metadataAddress As String _
) As IAppBuilder
'Usage
Dim app As IAppBuilder
Dim clientId As String
Dim metadataAddress As String
Dim returnValue As IAppBuilder
returnValue = app.UseOpenIdConnectAuthentication(clientId, _
metadataAddress)
public static IAppBuilder UseOpenIdConnectAuthentication(
this IAppBuilder app,
string clientId,
string metadataAddress
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseOpenIdConnectAuthentication(
IAppBuilder^ app,
String^ clientId,
String^ metadataAddress
)
static member UseOpenIdConnectAuthentication :
app:IAppBuilder *
clientId:string *
metadataAddress:string -> IAppBuilder
public static function UseOpenIdConnectAuthentication(
app : IAppBuilder,
clientId : String,
metadataAddress : String
) : IAppBuilder
Parameters
- app
Type: IAppBuilder
The IAppBuilder passed to the configuration method
- clientId
Type: System.String
The application identifier.
- metadataAddress
Type: System.String
The discovery endpoint for obtaining metadata.
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