Class OidcDiscovery
java.lang.Object
io.fluxzero.idp.client.OidcDiscovery
Fetches and caches OIDC discovery documents for configured issuers.
Discovery is part of the production trust chain: the advertised issuer must match the configured issuer before endpoints are accepted. The local stub IDP exposes the same metadata shape so applications can use the same client code in local tests and production.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OidcDiscoveryDocumentDiscovers and caches metadata for an issuer.static OidcDiscoveryDocumentdiscover(String issuer, OidcTransport transport) Discovers using only the supplied transport, without the process-wide legacy cache.
-
Method Details
-
discover
Discovers and caches metadata for an issuer.- Parameters:
issuer- configured issuer URL- Returns:
- validated discovery metadata
-
discover
Discovers using only the supplied transport, without the process-wide legacy cache. The caller owns caching/lifetime so metadata accepted via another transport cannot bypass its trust policy.
-