OpenIdConnectMiddleware Class

ASP.NET Core middleware for obtaining identities using OpenIdConnect protocol.

Namespace
Microsoft.AspNetCore.Authentication.OpenIdConnect
Assemblies
  • Microsoft.AspNetCore.Authentication.OpenIdConnect

Inheritance Hierarchy

Syntax

public class OpenIdConnectMiddleware : AuthenticationMiddleware<OpenIdConnectOptions>
class Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware

Constructors

OpenIdConnectMiddleware(Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.DataProtection.IDataProtectionProvider, Microsoft.Extensions.Logging.ILoggerFactory, System.Text.Encodings.Web.UrlEncoder, System.IServiceProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authentication.SharedAuthenticationOptions>, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.OpenIdConnectOptions>, System.Text.Encodings.Web.HtmlEncoder)

Initializes a Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware

Arguments:
public OpenIdConnectMiddleware(RequestDelegate next, IDataProtectionProvider dataProtectionProvider, ILoggerFactory loggerFactory, UrlEncoder encoder, IServiceProvider services, IOptions<SharedAuthenticationOptions> sharedOptions, IOptions<OpenIdConnectOptions> options, HtmlEncoder htmlEncoder)

Properties

Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware.Backchannel
Return type:System.Net.Http.HttpClient
protected HttpClient Backchannel { get; }
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware.HtmlEncoder
Return type:System.Text.Encodings.Web.HtmlEncoder
protected HtmlEncoder HtmlEncoder { get; }

Methods

CreateHandler()

Provides the Microsoft.AspNetCore.Authentication.AuthenticationHandler`1 object for processing authentication-related requests.

Return type:Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Builder.OpenIdConnectOptions>
Returns:An Microsoft.AspNetCore.Authentication.AuthenticationHandler`1 configured with the Microsoft.AspNetCore.Builder.OpenIdConnectOptions supplied to the constructor.
protected override AuthenticationHandler<OpenIdConnectOptions> CreateHandler()