Package io.fluxzero.idp.testsupport.localstub


package io.fluxzero.idp.testsupport.localstub
Local Fluxzero IDP stub for application tests.

This module is intentionally shaped like a tenant in the real Fluxzero IDP instead of a generic mock authentication shortcut. Applications should be able to run the same BFF authorization-code-with-PKCE flow locally and in production. The local version is selected by the test classpath and is exposed through normal Fluxzero web handlers, usually on the same proxy origin as the application under test.

The stub creates an in-memory RSA signing key for each JVM run, exposes discovery and JWKS endpoints, serves a minimal username-only login form, issues ID/access tokens, and validates its own tokens for tests. It is not meant to model the global Fluxzero IDP tenant and must not be used as production authentication infrastructure.

  • Classes
    Class
    Description
    In-memory OIDC tenant used by Fluxzero applications during local development tests.
    ServiceLoader token validator for tokens signed by the in-process local stub IDP.