All Packages

Package Summary
Package
Description
OAuth 2.1 / OpenID Connect authorization server built with Spring Authorization Server, with its login, consent, MFA and account pages.
Web adapter of the authorization server: security filter chains, login page and OpenAPI description.
Self-service account REST API: registration, e-mail verification, password change and password reset.
Administration of users and clients.
Client authentication at the token endpoints beyond a shared secret: private_key_jwt with replay protection (RFC 7523) and mutual TLS, tls_client_auth and self_signed_tls_client_auth (RFC 8705).
Web adapter of registered client management: the administration endpoints, their DTOs, the startup seeding and the optional dynamic client registration.
 
Error page of the server-rendered pages.
OAuth 2.0 Token Exchange (RFC 8693): the claims of the exchanged tokens.
OAuth 2.0 Device Authorization Grant (RFC 8628) for input-constrained clients, such as a command line tool: the protocol customizer that wires the device authorization and verification endpoints, the guard that applies the multi-factor policy and the limit on the attempts to the verification endpoint, and the verification page.
Web adapter of the signing keys: the administration endpoints, the scheduled rotation job and the startup bootstrap.
Login page, its controller and the extension points other authentication methods plug into.
 
Multi-factor authentication orchestration.
One-time token authentication: e-mail and SMS codes and magic links as a primary sign-in method and as a second factor, the per-channel factors, the rate limits, the providers and filters, and the phone management API and account page.
Rendering of the server-rendered HTML pages.
 
Pushed authorization requests (RFC 9126), opt-in with authserver.par.enabled: the protocol chain customizer that enables the framework's pushed authorization request endpoint.
Passkeys (WebAuthn): the factor, the chain wiring, the login and second-factor fragments, the account API and the account page.
Web adapter of the password-based sign-in: the Spring Security user details service over the use case, the password encoder and the authentication provider, which checks the account status only after the password.
Rate-limiting building blocks shared by the features that limit their endpoints.
Social login (identity brokering) through external identity providers: Google, Microsoft Entra ID, Apple and GitHub.
Token customization (claims, formats, lifetimes): the claims extension point, the access-token customizer, the UserInfo mapper and the expired authorization cleanup job.
Time-based one-time password (TOTP) second factor.
 
 
X.509 client certificate authentication: a certificate presented on a dedicated TLS port, or forwarded by a trusted reverse proxy in a header, signs in the user it is bound to (by the SHA-256 fingerprint of the certificate) at POST /login/x509, the form of the login page, with the CSRF token.
Use cases of the account lifecycle: registration, e-mail verification, password change and reset.
Use cases and settings of client authentication: registering the identifier of an accepted client assertion so it cannot be replayed, and purging the identifiers that expired.
Use cases that manage registered clients.
Use cases that manage the signing keys.
Use cases of the multi-factor framework: security events, second-factor lockout and trusted devices.
Use cases of the one-time-code (e-mail and SMS) authentication factor: requesting, verifying and cleaning up codes, and the policy beans they share.
Use cases that manage the passkeys (WebAuthn credentials) of a user: list, rename and delete, whether the user has one (a second factor enrolment query), and the relying party settings.
Use cases of the password-based sign-in.
Use cases of the SMS channel: phone enrolment and verification, cost-capped sending of codes and the enrolment query of the SMS second factor.
Use cases of social login (identity brokering): resolving a sign-in with an external provider to an account (finding it, linking by verified e-mail address, or provisioning it), linking, unlinking and listing the identities of an account.
Shared time source.
Use cases that act on issued tokens and stored authorizations.
Use cases of the TOTP authenticator-app second factor and its recovery codes.
Use cases of X.509 client certificate sign-in: resolving a certificate fingerprint to an account, binding a certificate to an account and unbinding it.
Root of the domain layer: the helpers every feature's models share.
Account lifecycle: registration, e-mail verification, password change and reset.
Client authentication at the protocol endpoints: the model and the ports of the replay protection of private_key_jwt client assertions.
Registered OAuth 2.1 clients and the port that stores them.
Signing keys: their model, lifecycle states and the ports the use cases need.
Multi-factor authentication: the authentication factors, the policy that decides when an authentication is strong enough, trusted devices, the audit trail and the failed-attempt lockout of the second factor.
One-time tokens: e-mail and SMS codes and magic links as a sign-in method.
Passkeys (WebAuthn credentials): the descriptive model of a registered credential, the port that lists, renames and deletes them, and the exception for a credential that does not exist.
Password-based user accounts and the port that provides them.
Phones and text messages: the phone number value object, the phone a user verified, the ports to send messages, keep phones and pending verifications, record the spend, and the policy that caps the cost.
Social login (identity brokering): the identities of external providers linked to an account, the providers supported, how far a provider's multi-factor claim is trusted, and the port that stores the links.
Tokens issued by the authorization server and the stored authorizations behind them.
Time-based one-time passwords (RFC 6238) and single-use recovery codes: the credential, the algorithm and the ports that store and protect the secrets.
X.509 client certificates as a sign-in method: the binding of a certificate to an account and the port that stores it.
GitHub adapter of the authorization server: the verified e-mail port of the social login, implemented with the REST client generated from apis/github/rest-server/github-api-v1.yaml.
 
 
 
 
Signing keys of the authorization server: key encryption and generation, the JWK sources and the signed token service built on them.
Mail adapter of the authorization server: delivers one-time tokens and account e-mails.
 
PostgreSQL implementation of the account token port, over the account_tokens table.
PostgreSQL implementation of the client assertion replay registry, over the client_assertion_jtis table.
JDBC-backed registered clients, authorizations and consents of the authorization server.
Development-only data: the dev profile seeds a demo user and the BFF client.
PostgreSQL implementation of the signing key port, over the signing_keys table.
PostgreSQL implementations of the multi-factor ports: security events, second-factor attempts and the per-user enforcement flag, over the security_events, second_factor_attempts and users tables.
PostgreSQL implementations of the one-time token ports: the codes of the email and SMS one-time code login (over the ott_codes table) and the Spring Security one-time token service of the magic links (over the one_time_tokens table).
PostgreSQL implementation of the passkey port over the user_credentials and user_entities tables of Spring Security's official WebAuthn schema, plus the beans of Spring's own JDBC credential and user entity repositories that the WebAuthn filters use.
PostgreSQL implementation of the user account port, over the users, user_authorities and user_passwords tables.
PostgreSQL implementations of the SMS ports: the verified phone numbers and the phone verifications in progress (both over the user_phones table) and the SMS cost ledger (over the sms_cost_ledger table).
JDBC adapters of social login: the identities of external providers linked to accounts, the mark of the accounts that only hold a generated password, and the Jackson module of the federated principals.
PostgreSQL support for OAuth 2 authorizations: clean-up of user authorizations and refresh token reuse detection.
PostgreSQL implementations of the TOTP credential and recovery code ports, over the totp_credentials and recovery_codes tables.
JDBC adapter of X.509 client certificate sign-in: the certificates bound to accounts.
SMS adapter of the authorization server: the logging default sender with its bounded outbox, the Twilio and Amazon SNS gateways (each enabled by its own profile) and the libphonenumber normaliser.
Backend-for-Frontend that signs a browser SPA in through the authorization server and calls the resource server on the user's behalf, so tokens never reach JavaScript.
Web adapter of the Backend-for-Frontend: OAuth2 login security and the endpoints exposed to the SPA.
Documents endpoints of the BFF (/api/documents), generated from the contract apis/bff/rest-server/bff-api-v1.yaml: they call the use cases, which reach the resource server through the documents port on the user's behalf.
Starts the OpenID Connect login of the BFF.
Ends the BFF session and the single sign-on session of the authorization server.
BFF security configuration (OAuth2 login).
Endpoints exposing the signed-in user to the SPA.
 
 
Use cases of the BFF: Spring services over the domain ports.
Use cases over the documents of the signed-in user.
Domain model and ports of the BFF.
Documents of the signed-in user, which the BFF reads and deletes on the resource server on the user's behalf: the Document model, the DocumentGateway port and the failures the port reports.
Resource-server adapter of the BFF: implements the DocumentGateway port with the REST client generated from the resource server's contract (apis/resource-server/rest-server/resource-server-api-v1.yaml).
 
 
 
 
Session persistence adapter of the BFF: the HTTP session stored by Spring Session JDBC in the bff database, and its cookie.
Development-profile wiring of the session store of the BFF: the bff database of the Compose PostgreSQL.
Resource server exposing a JWT-protected API that validates the tokens issued by the authorization server.
Web adapter of the resource server: JWT bearer security.
Documents REST API of the resource server.
Resource server security configuration (JWT or opaque-token validation, method security, RFC 6750 error handling).
 
 
Use cases of the resource server: Spring services over the domain ports.
 
Domain model and ports of the resource server.
 
In-memory driven adapter of the resource server: implements the domain ports over process memory.
Non-interactive client that obtains tokens with the client credentials grant and calls the resource server.
Use cases of the service client: Spring services over the domain ports.
Use cases over the documents of the resource server.
Command-line client of the OAuth 2.0 device authorization grant (RFC 8628): requests a device code, shows the user code and verification URI, and polls the token endpoint until the user approves the request.
Domain model and ports of the service client.
Documents the service client reads on the resource server: the Document model, the two ports (DocumentGateway with the client's own token and OnBehalfOfDocumentGateway on behalf of a user) and the failure they report.
Resource-server adapter of the service client: the documents gateways over a REST client generated from the resource server's contract, and the OAuth2 client that obtains the access token they send (client credentials grant, or token exchange on behalf of a user), authenticated with a secret, a signed assertion or a client certificate and optionally DPoP-bound.
 
 
 
 
Shared test harness: Testcontainers PostgreSQL support for integration tests, and the comparison of the OpenAPI contracts under apis/ with the documents the applications serve.