All Classes and Interfaces
Class
Description
Use case that finds the one key that signs new tokens.
Use case that binds a client certificate to an account and audits it.
Use case that lets a signed-in user choose a new password.
Use case that tells whether the second factor of a user is locked after too many failed attempts.
Use case that deletes the account tokens (password reset links) that have expired, used or not: once expired they
can never be consumed, so keeping them only grows the table.
Use case that deletes the authorizations whose tokens have all expired, and the abandoned ones: authorization or
consent requests that never got a token and are older than a threshold.
Use case that deletes the trusted devices that have expired, since they can never be used again.
Deletes what the one-time-code and SMS features leave behind: expired codes, expired pending phone verifications,
cost ledger rows older than the retention and expired magic-link tokens.
Settings of the client assertions, bound from
authserver.client-assertion.* once and validated at startup.Settings of the purge of expired identifiers.
Generates random client secrets.
Provides the
Clock the use cases read the current time from, so tests can replace it with a fixed one.Confirms a phone with the code that was sent to it.
Use case that confirms the enrolment of an authenticator app inside the sign-in, where the code also stands as the
second factor of that sign-in: like
VerifyTotpUseCase, a locked second factor is refused, a wrong code
counts towards the lockout and a right one clears the counter and is audited.Use case that finishes the enrolment of an authenticator app with the first code it shows.
Use case that counts the recovery codes a user still has, so the UI can warn when few are left.
Use case that registers a client.
The result of creating a client.
A trusted device just created, with the signed cookie value that is only available now.
Use case that trusts the browser of a user for some days so it skips the second factor.
The single definition of the clients a deployment can start with: the confidential
bff (backend for
frontend) and the public spa-public.Use case that deletes a registered client.
Use case that deletes a passkey of a user and audits the removal.
Delivers what the one-time token use cases asked for: an e-mailed code or link, or a text message whose cost was
already recorded.
Use case that removes the authenticator app of a user together with the recovery codes that went with it.
Event published when a one-time code must be e-mailed.
Event published when a magic link must be e-mailed.
Use case that starts the enrolment of an authenticator app: it generates a secret, stores it encrypted and
unconfirmed (replacing any earlier unconfirmed one) and returns the
otpauth:// URI to show as a QR code.The account a sign-in with an external provider resolved to.
How a sign-in with an external provider found its account.
Use case that finds the usable (not revoked, not expired) trusted device of a user from the value of the cookie.
Use case that looks a user account up by username.
Finds the verified phone of a user, which the account API shows masked.
Use case that creates a fresh set of recovery codes for a user, replacing any previous set.
Use case that looks a client up by its identifier.
Use case that tells whether a user has registered a passkey.
Use case that tells whether a user has confirmed any second factor, asking every
SecondFactorEnrolmentQuery
bean.Tells whether a user has a verified phone.
Thrown when the text typed as a phone number is not a valid number.
Use case that tells whether a client makes multi-factor authentication mandatory for every user signing in through
it (
ClientRegistration.mfaRequired()).Use case that tells whether a user has a confirmed authenticator app.
Use case that tells whether the account of a user requires a second factor, whatever the client being served: when
an administrator forced it (
users.mfa_required) or when the user has confirmed a second factor (asked to
HasConfirmedSecondFactorUseCase), since a factor the user enrolled must protect every sign-in.Use case that links an identity of an external provider to the account of a signed-in user.
Use case that lists the client certificates bound to an account.
Use case that lists every registered client.
Use case that lists the identities of external providers linked to an account.
Use case that lists the passkeys of a user.
Use case that lists every stored signing key, whatever its state, for administration.
Use case that lists the trusted devices of a user that have not expired.
Use case that locks the sign-in methods of an account for the rest of the caller's transaction and counts them: a
password its owner knows (not a generated one), the linked identities, a passkey and the bound certificates.
Exposes the domain collaborators of the multi-factor use cases as beans, so no use case creates them and a
deployment (or a test) can replace any of them, and binds the
MfaProperties.Multi-factor settings, bound once from
authserver.mfa.* and injected wherever one of them is needed (the use
cases of this module and the step-up guard of the API).Outcome of a request for a one-time code.
Number of rows removed by a cleanup run.
Declares the collaborators of the one-time-code use cases as beans, so they can be replaced and mocked.
Where a one-time code of a user is delivered.
Settings of the one-time codes, bound from
authserver.ott.* once and validated at startup.Outcome of the verification of a one-time code.
What happened when a code was verified.
Binds the
PasskeyProperties.Relying party settings of the passkeys (WebAuthn), bound once from
authserver.passkeys.* and injected
wherever one of them is needed.Exposes the domain's
PasswordPolicy as a bean, so the use cases that check a new password depend on the
policy instead of creating it, and a deployment can replace it with a policy of its own.Outcome of starting a phone enrolment.
Use case that finds the keys to publish in the JWKS: the active key, the next key (so relying parties can cache it
before it signs) and every retired key whose tokens may still be unexpired.
Deletes the identifiers of the client assertions that already expired.
Use case that records a security event (login, second factor, lockout, trusted device) in the audit log.
Creates recovery codes (Crockford base-32 alphabet, so no
I, L, O or U) and
normalizes what a user types back into that form.Use case that registers an account.
Records the use of a client assertion and tells whether it is a replay.
Use case that counts a failed second-factor attempt and locks the second factor of the user once
authserver.mfa.max-failed-attempts consecutive failures are reached.Removes the phone of a user, verified and pending.
Use case that renames a passkey of a user.
Sends a magic link to the verified e-mail address of an enabled account.
Sends a one-time code to a user, by e-mail or SMS.
Use case that starts a password reset.
Use case that chooses a new password with the single-use token received by e-mail.
Use case that clears the failed second-factor attempts of a user, after a successful verification.
Use case that resolves a client certificate, presented over TLS or by a trusted proxy, to the account it is bound
to.
Use case that resolves a sign-in with an external provider to a local account.
Finds where a one-time code of a user may be delivered: the verified e-mail address or the verified phone of an
enabled account.
Use case that revokes a trusted device of a user, so it asks for the second factor again.
Use case that revokes every token of a user, for example after a password change or reset.
Use case that replaces the secret of a client that authenticates with a client secret with a new generated one.
Use case that keeps the signing keys rotating.
Extension point that tells whether a user has confirmed one kind of second factor.
Generates numeric one-time codes with a cryptographically strong random number generator.
Use case that registers the configured clients (built from
DefaultClientDefinitions) that are missing.Outcome of seeding the default clients.
Requests an SMS inside the cost policy: the country must be served and the spending of the window and of the day,
including this message, must stay within their caps.
Hashes one-time codes with SHA-256 (lower-case hex) and compares them in constant time.
Decides how long a retired signing key stays published.
Published after the signing keys have been rotated, so adapters that cache keys can drop what they hold.
Thrown when an SMS is not sent because it would exceed the spending cap of the window or of the day.
Declares the policy of the SMS channel as a bean.
Thrown when an SMS is not sent because its country is not served, or cannot be determined.
Texts of the SMS messages.
Settings of the SMS channel, bound from
authserver.sms.* once and validated at startup.Base of the reasons why an SMS is refused before it is sent.
Event published when a text message, whose cost is already recorded within the budget, must be sent.
Exposes the domain's
FederatedLinkingPolicy as a bean, so the use cases of social login depend on the policy
instead of creating it, and a deployment can replace it with a policy of its own.Starts the enrolment of a phone: normalises the number and sends it a verification code.
Creates the random tokens that identify a trusted device and hashes them, so only the SHA-256 hash is ever stored.
Use case that unbinds a client certificate from an account and audits it.
Use case that unlinks an identity of an external provider from an account and audits it.
Use case that replaces the settings of a registered client; its secret is kept.
Use case that replaces the stored password hash of a user with one made by the current algorithm, right after a
successful sign-in (the only moment the clear-text password is known).
Use case that confirms an e-mail address from the signed token that was mailed to it, which also enables the
account.
Verifies a one-time code.
Use case that accepts a recovery code as a second factor.
Use case that verifies a TOTP code presented as a second factor: ±1 step window, no replay of a step already used,
lockout after repeated failures, and an audit event either way.