Table of Contents

Class Saml2AuthenticationServiceExtensions

Namespace
ProjectTemplate.Web.Authentication.Providers.Saml2
Assembly
ProjectTemplate.Web.dll

Provides extension methods for registering SAML2 authentication provider services.

public static class Saml2AuthenticationServiceExtensions
Inheritance
Saml2AuthenticationServiceExtensions
Inherited Members

Methods

AddSaml2Authentication(AuthenticationBuilder, Saml2AuthenticationOptions)

Adds SAML2 authentication using the specified options to the authentication builder.

public static AuthenticationBuilder AddSaml2Authentication(this AuthenticationBuilder builder, Saml2AuthenticationOptions options)

Parameters

builder AuthenticationBuilder

The authentication builder to which the SAML2 authentication scheme is added.

options Saml2AuthenticationOptions

The options used to configure the SAML2 authentication scheme. Cannot be null.

Returns

AuthenticationBuilder

The authentication builder with the SAML2 authentication scheme configured.

Remarks

If the SAML2 authentication is not enabled in the provided options, the method returns the original builder without modification.