Class SamlMiddleware
- Namespace
- ComponentSpace.Saml2.Middleware
- Assembly
- ComponentSpace.Saml2.dll
The SAML middleware.
public class SamlMiddleware : IMiddleware
- Inheritance
-
SamlMiddleware
- Implements
- Inherited Members
Constructors
SamlMiddleware(IOptions<SamlMiddlewareOptions>, ISamlIdentityProvider, ISamlClaimFactory, IUrlUtility, ILoggerFactory)
Initializes a new instance of the SamlMiddleware class.
public SamlMiddleware(IOptions<SamlMiddlewareOptions> options, ISamlIdentityProvider samlIdentityProvider, ISamlClaimFactory samlClaimFactory, IUrlUtility urlUtility, ILoggerFactory loggerFactory)
Parameters
optionsIOptions<SamlMiddlewareOptions>The SAML middleware options.
samlIdentityProviderISamlIdentityProviderThe SAML identity provider.
samlClaimFactoryISamlClaimFactoryThe SAML claims factory.
urlUtilityIUrlUtilityThe URL utility.
loggerFactoryILoggerFactoryThe logger factory.
Methods
InvokeAsync(HttpContext, RequestDelegate)
Invokes the middleware.
public virtual Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
contextHttpContextThe HttpContext for the current request.
nextRequestDelegateThe delegate representing the remaining middleware in the request pipeline.
Returns
- Task
A task that represents the operation.