Class SamlAuthenticationExtensions
Extension methods for adding SAML authentication in an AuthenticationBuilder.
Inherited Members
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. |