oidcdiscovery

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

func DiscoverOIDCJWKSURL(ctx context.Context, issuer string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL