Package io.fluxzero.idp.client


package io.fluxzero.idp.client
Shared Fluxzero IDP client helpers for Fluxzero applications.

This module intentionally owns only the protocol-shaped pieces that are reusable for every Fluxzero application: tenant configuration, discovery, PKCE authorization-code exchange and JWT validation. For BFF flows, OidcLoginStateCodec can store the short-lived PKCE login transaction in an encrypted cookie so callbacks are not bound to a single backend instance. Application-specific user mapping remains outside this module. Applications are expected to keep their own SenderProvider or equivalent user provider because mapping an OIDC subject and claims to domain roles, aggregates and permissions is part of the customer domain.

The same application code should be able to run against the production Fluxzero IDP from src/main/java and against the local stub IDP from the test classpath. Token validation is therefore selected through ServiceLoader: the default validator verifies RS256 tokens through issuer discovery and JWKS, while tests can contribute a validator that trusts the in-process local stub signing key. The security invariants are the same in both cases: issuer, audience, token use, validity window and signature must all be checked.

  • Class
    Description
    Minimal form-url-encoding helper for OIDC endpoints.
    Default Fluxzero OIDC token validator for RS256 JWTs exposed through a tenant JWKS endpoint.
    Normalized claims extracted from a validated OIDC JWT.
    Small OIDC client for authorization-code-with-PKCE application flows.
    Raw token response returned by an OIDC tenant.
    Credentials used by a confidential application when exchanging an authorization code.
    Fetches and caches OIDC discovery documents for configured issuers.
    OIDC discovery metadata used by Fluxzero application authentication helpers.
    Stateless BFF login transaction data for one OIDC Authorization Code + PKCE attempt.
    Encodes OidcLoginState into an encrypted, authenticated, cookie-safe value.
    Tenant-specific OIDC settings for a Fluxzero application.
    Client authentication method used at the OIDC token endpoint.
    PKCE verifier and S256 challenge pair.
    Runtime exception raised when OIDC token exchange, discovery, or validation fails.
    Parameters for validating an ID or access token against a configured OIDC tenant.
    Strategy for validating OIDC JWTs.
    ServiceLoader-backed token validator selector.