OpenIdConnectMiddleware Class¶
ASP.NET Core middleware for obtaining identities using OpenIdConnect protocol.
- Namespace
Microsoft.AspNetCore.Authentication.OpenIdConnect- Assemblies
- Microsoft.AspNetCore.Authentication.OpenIdConnect
Inheritance Hierarchy¶
System.ObjectMicrosoft.AspNetCore.Authentication.AuthenticationMiddleware{Microsoft.AspNetCore.Builder.OpenIdConnectOptions}Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware
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.OpenIdConnectMiddlewareArguments: - next (Microsoft.AspNetCore.Http.RequestDelegate) – The next middleware in the middleware pipeline to invoke.
- dataProtectionProvider (Microsoft.AspNetCore.DataProtection.IDataProtectionProvider) – provider for creating a data protector.
- loggerFactory (Microsoft.Extensions.Logging.ILoggerFactory) – factory for creating a
Microsoft.Extensions.Logging.ILogger. - htmlEncoder (System.Text.Encodings.Web.HtmlEncoder) – The
Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectMiddleware.HtmlEncoder.
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`1object for processing authentication-related requests.Return type: Microsoft.AspNetCore.Authentication.AuthenticationHandler<Microsoft.AspNetCore.Builder.OpenIdConnectOptions> Returns: An Microsoft.AspNetCore.Authentication.AuthenticationHandler`1configured with theMicrosoft.AspNetCore.Builder.OpenIdConnectOptionssupplied to the constructor.protected override AuthenticationHandler<OpenIdConnectOptions> CreateHandler()
-