Show / Hide Table of Contents

Class SamlAuthenticationExtensions

Extension methods for adding SAML authentication in an AuthenticationBuilder.

Inheritance
object
SamlAuthenticationExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SamlAuthenticationExtensions

Methods

AddSaml(AuthenticationBuilder)

Adds the SAML authentication handler.

Declaration
public static AuthenticationBuilder AddSaml(this AuthenticationBuilder builder)
Parameters
Type Name Description
AuthenticationBuilder builder

The authentication builder.

Returns
Type Description
AuthenticationBuilder

The authentication builder.

AddSaml(AuthenticationBuilder, Action<SamlAuthenticationOptions>)

Adds the SAML authentication handler.

Declaration
public static AuthenticationBuilder AddSaml(this AuthenticationBuilder builder, Action<SamlAuthenticationOptions> configureOptions)
Parameters
Type Name Description
AuthenticationBuilder builder

The authentication builder.

Action<SamlAuthenticationOptions> configureOptions

The SAML options.

Returns
Type Description
AuthenticationBuilder

The authentication builder.

AddSaml(AuthenticationBuilder, string, Action<SamlAuthenticationOptions>)

Adds the SAML authentication handler.

Declaration
public static AuthenticationBuilder AddSaml(this AuthenticationBuilder builder, string authenticationScheme, Action<SamlAuthenticationOptions> configureOptions)
Parameters
Type Name Description
AuthenticationBuilder builder

The authentication builder.

string authenticationScheme

The authentication scheme.

Action<SamlAuthenticationOptions> configureOptions

The SAML options.

Returns
Type Description
AuthenticationBuilder

The authentication builder.

AddSaml(AuthenticationBuilder, string, string, Action<SamlAuthenticationOptions>)

Adds the SAML authentication handler.

Declaration
public static AuthenticationBuilder AddSaml(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<SamlAuthenticationOptions> configureOptions)
Parameters
Type Name Description
AuthenticationBuilder builder

The authentication builder.

string authenticationScheme

The authentication scheme.

string displayName

The display name.

Action<SamlAuthenticationOptions> configureOptions

The SAML options.

Returns
Type Description
AuthenticationBuilder

The authentication builder.

In this article
Back to top Copyright © ComponentSpace Pty Ltd 2017-2025. All rights reserved.