Class ConfigurationResolver
Resolves configuration using the OpenID configuration.
Inheritance
Implements
Inherited Members
Namespace: ComponentSpace.OpenID.Configuration.Resolver
Assembly: ComponentSpace.OpenID.dll
Syntax
public class ConfigurationResolver : IConfigurationResolver
Constructors
ConfigurationResolver(IOptionsMonitor<OpenIDConfigurations>)
Constructs an ConfigurationResolver
.
Declaration
public ConfigurationResolver(IOptionsMonitor<OpenIDConfigurations> openIDConfigurations)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptionsMonitor<OpenIDConfigurations> | openIDConfigurations | The OpenID configurations. |
Properties
ConfigurationName
Gets or sets the optional OpenID configuration name.
For most applications, a single OpenID configuration is used and the OpenID configuration name is not required. For multi-tenanted applications and other special use cases with multiple OpenID configurations, the name specifies the configuration to use.
Declaration
public virtual string ConfigurationName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The configuration name. |
Methods
GetClientConfigurationAsync(String)
Gets the client configuration with the specified ID.
Declaration
public virtual Task<ClientConfiguration> GetClientConfigurationAsync(string clientID)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientID | The client ID. |
Returns
Type | Description |
---|---|
Task<ClientConfiguration> | A task that represents the operation and returns the client configuration. |
GetProviderConfigurationAsync()
Gets the OpenID provider configuration.
Declaration
public virtual Task<ProviderConfiguration> GetProviderConfigurationAsync()
Returns
Type | Description |
---|---|
Task<ProviderConfiguration> | A task that represents the operation and returns the OpenID provider configuration. |
ToString()
Returns the configuration as a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The configuration as a string. |