Documentation
¶
Overview ¶
Package oidcdiscovery reads issuer metadata and validates discovery redirects and signing-key locations. It retains the discovery client's existing request budget and transient startup retries; token authentication stays with callers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverOIDCJWKSURL ¶
DiscoverOIDCJWKSURL resolves an issuer's OIDC discovery document and returns its jwks_uri. The caller can use an explicitly configured URL instead when a provider does not publish standard discovery metadata.
func DiscoverOIDCJWKSURLWithRetry ¶
func DiscoverOIDCJWKSURLWithRetry(ctx context.Context, issuer string, attempts int, initialBackoff time.Duration) (string, error)
DiscoverOIDCJWKSURLWithRetry retries transient discovery failures with exponential backoff, so a service starting while its identity provider is briefly unreachable does not crash-loop on the first attempt.
Types ¶
This section is empty.