Table of Contents

Class OidcProviderMetadata

Namespace
OpenShell.Oidc
Assembly
OpenShell.Sdk.dll

The trusted subset of an OpenID Connect discovery document.

public sealed record OidcProviderMetadata : IEquatable<OidcProviderMetadata>
Inheritance
OidcProviderMetadata
Implements
Inherited Members

Constructors

OidcProviderMetadata(string, string, string, string?, IReadOnlyList<string>)

The trusted subset of an OpenID Connect discovery document.

public OidcProviderMetadata(string Issuer, string AuthorizationEndpoint, string TokenEndpoint, string? DeviceAuthorizationEndpoint, IReadOnlyList<string> CodeChallengeMethodsSupported)

Parameters

Issuer string

The validated issuer URL.

AuthorizationEndpoint string

The authorization endpoint, for the authorization-code flow.

TokenEndpoint string

The token endpoint.

DeviceAuthorizationEndpoint string

The device authorization endpoint, when the provider supports the device flow.

CodeChallengeMethodsSupported IReadOnlyList<string>

The PKCE code challenge methods the provider advertises.

Properties

AuthorizationEndpoint

The authorization endpoint, for the authorization-code flow.

public string AuthorizationEndpoint { get; init; }

Property Value

string

CodeChallengeMethodsSupported

The PKCE code challenge methods the provider advertises.

public IReadOnlyList<string> CodeChallengeMethodsSupported { get; init; }

Property Value

IReadOnlyList<string>

DeviceAuthorizationEndpoint

The device authorization endpoint, when the provider supports the device flow.

public string? DeviceAuthorizationEndpoint { get; init; }

Property Value

string

Issuer

The validated issuer URL.

public string Issuer { get; init; }

Property Value

string

SupportsS256

True when the provider advertises PKCE with S256.

public bool SupportsS256 { get; }

Property Value

bool

TokenEndpoint

The token endpoint.

public string TokenEndpoint { get; init; }

Property Value

string