Table of Contents

Class RegexSamlConfigurationNameResolver

Namespace
ComponentSpace.Saml2.Configuration.Resolver
Assembly
ComponentSpace.Saml2.dll

Resolves configuration names.

Issuer names are matched against partner provider configuration regular expressions.

public class RegexSamlConfigurationNameResolver : ISamlConfigurationNameResolver
Inheritance
RegexSamlConfigurationNameResolver
Implements
Inherited Members

Constructors

RegexSamlConfigurationNameResolver(ISamlConfigurationResolver)

Initializes a new instance of the RegexSamlConfigurationNameResolver class.

public RegexSamlConfigurationNameResolver(ISamlConfigurationResolver samlConfigurationResolver)

Parameters

samlConfigurationResolver ISamlConfigurationResolver

The SAML configuration resolver.

Methods

GetPartnerIdentityProviderNameAsync(string, string)

Gets the name of the partner identity provider configuration to use for the SAML message identified by its issuer.

public virtual Task<string> GetPartnerIdentityProviderNameAsync(string configurationName = null, string issuerName = null)

Parameters

configurationName string

The configuration name or null if none.

issuerName string

The issuer name.

Returns

Task<string>

A task that represents the operation and returns the partner identity provider configuration name.

Exceptions

SamlException

Thrown when the partner identity provider configuration name cannot be found.

GetPartnerServiceProviderNameAsync(string, string)

Gets the name of the partner service provider configuration to use for the SAML message identified by its issuer.

public virtual Task<string> GetPartnerServiceProviderNameAsync(string configurationName = null, string issuerName = null)

Parameters

configurationName string

The configuration name or null if none.

issuerName string

The issuer name.

Returns

Task<string>

A task that represents the operation and returns the partner service provider configuration name.

Exceptions

SamlException

Thrown when the partner service provider configuration name cannot be found.