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