Class RegexSamlConfigurationNameResolver
Resolves configuration names.
Issuer names are matched against partner provider configuration regular expressions.
Inheritance
Implements
Inherited Members
Namespace: ComponentSpace.Saml2.Configuration.Resolver
Assembly: ComponentSpace.Saml2.dll
Syntax
public class RegexSamlConfigurationNameResolver : ISamlConfigurationNameResolver
Constructors
RegexSamlConfigurationNameResolver(ISamlConfigurationResolver)
Initializes a new instance of the RegexSamlConfigurationNameResolver
class.
Declaration
public RegexSamlConfigurationNameResolver(ISamlConfigurationResolver samlConfigurationResolver)
Parameters
Type | Name | Description |
---|---|---|
ISaml |
samlConfigurationResolver | 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.
Declaration
public virtual async Task<string> GetPartnerIdentityProviderNameAsync(string configurationName = null, string issuerName = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
configurationName | The configuration name or |
System. |
issuerName | The issuer name. |
Returns
Type | Description |
---|---|
System. |
A task that represents the operation and returns the partner identity provider configuration name. |
Exceptions
Type | Condition |
---|---|
Saml |
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.
Declaration
public virtual async Task<string> GetPartnerServiceProviderNameAsync(string configurationName = null, string issuerName = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
configurationName | The configuration name or |
System. |
issuerName | The issuer name. |
Returns
Type | Description |
---|---|
System. |
A task that represents the operation and returns the partner service provider configuration name. |
Exceptions
Type | Condition |
---|---|
Saml |
Thrown when the partner service provider configuration name cannot be found. |