Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Duende.​IdentityModel.​Client.​DiscoveryEndpoint

Assembly: Duende.IdentityModel

Inheritance: object → DiscoveryEndpoint

Represents a discovery endpoint URL parsed into its authority and discovery endpoint components. This is commonly used to resolve URLs for OpenID Connect or OAuth2 discovery documents.

Properties

public string
Authority
Gets the base authority of the discovery endpoint.
public string
Url
Gets the full URL to the discovery document.

Methods

public static DiscoveryEndpoint
ParseUrl​(string input, string path = null)
Parses a given URL into its authority and discovery endpoint components.
Returns A <see cref="T:Duende.IdentityModel.Client.DiscoveryEndpoint" /> object containing the parsed authority and discovery endpoint URL.
input The full URL of the discovery endpoint to parse.
path An optional custom path to the discovery document. Defaults to <c>.well-known/openid-configuration</c> if not specified.
public static bool
IsValidScheme​(System.​Uri url)
Determines if the given URI uses a valid scheme for discovery endpoints.
Returns <c>true</c> if the URI scheme is either "http" or "https"; otherwise, <c>false</c> .
url The URI to validate.
public static bool
IsSecureScheme​(System.​Uri url, DiscoveryPolicy policy)
Determines if the specified URL uses a secure scheme based on the provided discovery policy.
Returns <c>true</c> if the URL uses a secure scheme according to the policy; otherwise, <c>false</c> .
url The URL to evaluate.
policy The discovery policy that defines the security requirements.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object