Documentation
¶
Overview ¶
Package oidcdiscovery fetches and parses an OpenID Connect provider's discovery document (<issuer>/.well-known/openid-configuration, per OpenID Connect Discovery 1.0 / RFC 8414).
It is a dependency-root leaf so both pkg/auth (which needs jwks_uri for JWKS validation) and pkg/oauth (which needs authorization_endpoint/token_endpoint for the brokered login flow) can share ONE fetch/parse implementation rather than each carrying its own copy that could drift.
Index ¶
Constants ¶
const WellKnownPath = "/.well-known/openid-configuration"
WellKnownPath is the discovery path appended to an issuer URL.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
Issuer string `json:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
JWKSURI string `json:"jwks_uri"`
}
Document is the subset of an OIDC provider's discovery metadata the platform consumes. Fields absent from the provider's document decode to the empty string; callers validate the ones they require.