OpenIdConnectAppBuilderExtensions Class¶
Extension methods to add OpenID Connect authentication capabilities to an HTTP application pipeline.
- Namespace
Microsoft.AspNetCore.Builder- Assemblies
- Microsoft.AspNetCore.Authentication.OpenIdConnect
Syntax¶
public class OpenIdConnectAppBuilderExtensions
-
class
Microsoft.AspNetCore.Builder.OpenIdConnectAppBuilderExtensions
Methods¶
-
UseOpenIdConnectAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder)¶ Adds the
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddlewaremiddleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder, which enables OpenID Connect authentication capabilities.Arguments: app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilderto add the middleware to.Return type: Microsoft.AspNetCore.Builder.IApplicationBuilder Returns: A reference to this instance after the operation has completed. public static IApplicationBuilder UseOpenIdConnectAuthentication(this IApplicationBuilder app)
-
UseOpenIdConnectAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.OpenIdConnectOptions) Adds the
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddlewaremiddleware to the specifiedMicrosoft.AspNetCore.Builder.IApplicationBuilder, which enables OpenID Connect authentication capabilities.Arguments: - app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
Microsoft.AspNetCore.Builder.IApplicationBuilderto add the middleware to. - options (Microsoft.AspNetCore.Builder.OpenIdConnectOptions) – A
Microsoft.AspNetCore.Builder.OpenIdConnectOptionsthat specifies options for the middleware.
Return type: Returns: A reference to this instance after the operation has completed.
public static IApplicationBuilder UseOpenIdConnectAuthentication(this IApplicationBuilder app, OpenIdConnectOptions options)
- app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The
-