Show / Hide Table of Contents

Class SamlMiddleware

The SAML middleware.

Inheritance
System.Object
SamlMiddleware
Implements
Microsoft.AspNetCore.Http.IMiddleware
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
Microsoft.Extensions.Options.IOptions<SamlMiddlewareOptions> options

The SAML middleware options.

ISamlIdentityProvider samlIdentityProvider

The SAML identity provider.

ISamlClaimFactory samlClaimFactory

The SAML claims factory.

IUrlUtility urlUtility

The URL utility.

Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

The logger factory.

Methods

InvokeAsync(HttpContext, RequestDelegate)

Invokes the middleware.

Declaration
public virtual async Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpContext context

The HttpContext for the current request.

Microsoft.AspNetCore.Http.RequestDelegate next

The delegate representing the remaining middleware in the request pipeline.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the operation.

Implements

Microsoft.AspNetCore.Http.IMiddleware
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2022. All rights reserved.