Show / Hide Table of Contents

Class ConfigurationResolver

Resolves configuration using the OpenID configuration.

Inheritance
System.Object
ConfigurationResolver
Implements
IConfigurationResolver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
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.

Overrides
System.Object.ToString()

Implements

IConfigurationResolver
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2022. All rights reserved.