Show / Hide Table of Contents

Class ProviderConfiguration

The OpenID provider configuration.

Inheritance
object
ProviderConfiguration
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ComponentSpace.OpenID.Configuration
Assembly: ComponentSpace.OpenID.dll
Syntax
public class ProviderConfiguration

Properties

AccessTokenExpiry

Gets or sets the access token expiry.

Declaration
public TimeSpan? AccessTokenExpiry { get; set; }
Property Value
Type Description
TimeSpan?

The access token expiry.

AuthCodeExpiry

Gets or sets the authorization code expiry.

Declaration
public TimeSpan? AuthCodeExpiry { get; set; }
Property Value
Type Description
TimeSpan?

The authorization code expiry.

ClockSkew

Gets or sets the permitted clock skew.

Declaration
public TimeSpan? ClockSkew { get; set; }
Property Value
Type Description
TimeSpan?

The clock skew.

Description

Gets or sets the description.

Declaration
public string? Description { get; set; }
Property Value
Type Description
string

The description.

IdTokenExpiry

Gets or sets the ID token expiry.

Declaration
public TimeSpan? IdTokenExpiry { get; set; }
Property Value
Type Description
TimeSpan?

The ID token expiry.

ProviderCertificates

Gets or sets the OpenID provider certificates.

Declaration
public Certificate[]? ProviderCertificates { get; set; }
Property Value
Type Description
Certificate[]

The OpenID provider certificates.

ProviderMetadata

Gets or sets the OpenID provider metadata.

Declaration
public ProviderMetadata? ProviderMetadata { get; set; }
Property Value
Type Description
ProviderMetadata

The OpenID provider metadata.

RefreshTokenExpiry

Gets or sets the refresh token expiry.

Declaration
public TimeSpan? RefreshTokenExpiry { get; set; }
Property Value
Type Description
TimeSpan?

The refresh token expiry.

Methods

GetProviderCertificates(CertificateStatus, CertificateUse)

Gets the provider certificates with the specified use.

Declaration
public IList<Certificate> GetProviderCertificates(CertificateStatus certificateStatus = CertificateStatus.Active, CertificateUse certificateUse = CertificateUse.Any)
Parameters
Type Name Description
CertificateStatus certificateStatus

The certificate status.

CertificateUse certificateUse

The certificate use.

Returns
Type Description
IList<Certificate>

The provider certificates.

GetProviderMetadata(bool)

Gets the provider metadata.

Declaration
public ProviderMetadata GetProviderMetadata(bool deepCopy = false)
Parameters
Type Name Description
bool deepCopy

The flag indicating whether to perform a deep copy of the provider metadata.

Returns
Type Description
ProviderMetadata

The provider metadata.

Exceptions
Type Condition
ConfigurationException

Thrown when the provider metadata cannot be retrieved.

In this article
Back to top Copyright © ComponentSpace Pty Ltd 2022-2026. All rights reserved.