Table of Contents

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

options IOptions<SamlMiddlewareOptions>

The SAML middleware options.

samlIdentityProvider ISamlIdentityProvider

The SAML identity provider.

samlClaimFactory ISamlClaimFactory

The SAML claims factory.

urlUtility IUrlUtility

The URL utility.

loggerFactory ILoggerFactory

The logger factory.

Methods

InvokeAsync(HttpContext, RequestDelegate)

Invokes the middleware.

public virtual Task InvokeAsync(HttpContext context, RequestDelegate next)

Parameters

context HttpContext

The HttpContext for the current request.

next RequestDelegate

The delegate representing the remaining middleware in the request pipeline.

Returns

Task

A task that represents the operation.