All Classes and Interfaces

Class
Description
 
Self-service account endpoints: registration, e-mail verification, password change and password reset.
Translates the failures of AccountController to RFC 9457 problem details, answered as application/problem+json.
Rate limiter of the unauthenticated account endpoints (register, verify, reset request, reset), built on Bucket4j token buckets (FixedWindowBuckets).
A client address or an e-mail address made more account requests than its window allows.
Configuration of the rate limiting of the unauthenticated account endpoints (authserver.account.rate-limit.*).
A UserDetailsService that refuses a disabled, locked or expired account.
The trust manager of the dedicated TLS port: it accepts any client certificate and advertises no certificate authority.
Security filter chain of the REST API under /api/**: stateless, bearer tokens issued by this server and validated by a decoder of its own (never the framework-wide one, which also serves the UserInfo endpoint).
Customizes the authorization request: Apple only hands over the name and the e-mail address of the user when the response is posted to the redirect URI (response_mode=form_post), so the request made for Apple's client id asks for it.
Generates the client secret Sign in with Apple requires: a JWT signed with ES256 by the key Apple issued (iss the team id, sub the client id, aud https://appleid.apple.com, header kid the key id), valid for a short time.
Reads the private key Apple issues for Sign in with Apple (an EC P-256 key in PKCS#8 PEM form, the content of the .p8 file) from the text an environment variable holds, where line breaks are often written as a literal \n.
Condition that holds when Sign in with Apple is configured, so the key of its client secret is only parsed and its special handling (the signed client secret, the form post callback) only installed then.
Customizes the parameters of the token request of the authorization code grant: the request made for Apple's client id carries the signed JWT of AppleClientSecretGenerator as its client_secret, in place of the empty secret the registration holds.
Enables @Async methods for every feature of the application (the delivery of one-time tokens after their transaction commits, ...), which then run on Spring Boot's applicationTaskExecutor.
Registry of the authentication factors this server knows.
The framework's own answer to a granted authorization code request, repeated because installing a response handler replaces it and the framework does not expose it: a redirect to the redirect URI with code and, when the request had one, state in the query.
The certificate to bind
Enables the binding of BrandingProperties.
Branding shown by the login, consent, logout and error pages, bound from authserver.ui.branding.*.
Supplies the BrandingProperties every server-rendered page shows, as the "branding" model attribute: the page renderer and the error view resolver add it to the model of each page they render.
An X.509 client certificate bound to the account
Manages the client certificates bound to the authenticated account (the operations of the contract).
Maps the certificate bindings of the domain onto the DTO generated from the contract.
Answers the failures of the certificates API as application/problem+json.
Takes the SHA-256 fingerprint of the client certificate as the principal, as 64 lower case hexadecimal digits, which is what a binding stores and what ResolveCertificateLoginUseCase looks up.
 
Change of the password of the authenticated account
Administration of the registered clients, as the contract apis/auth-server/rest-server/auth-server-api-v1.yaml describes it through the generated ClientsApi.
Scheduled entry point that deletes the identifiers of the client assertions that already expired.
Wires the client authentication methods private_key_jwt (with replay protection) and mutual TLS into the protocol chain.
Installs private_key_jwt with replay protection and the mutual-TLS client authentication in the protocol chain: the framework's assertion provider decodes with RegisteredJwksClientAssertionDecoderFactory, and its certificate provider verifies with ClientCertificateVerifier.
Verifies the certificate a client presented on the TLS port (RFC 8705), replacing the framework's verifier, which has no trust anchors of its own.
Maps between the DTOs generated from the contract and the client registrations of the domain, so a domain model is never returned from ClientAdminController.
Translates the failures of ClientAdminController to RFC 9457 problem details, answered as application/problem+json.
Parses and validates the public JWK set a client registers for private_key_jwt and self-signed mutual TLS authentication, and converts it between the JSON object of the contract and the JSON text the domain keeps.
Maps the settings of the enabled providers onto the client registrations Spring Security's oauth2Login needs.
Definition of a registered client; it never contains a secret, which the server generates
JWS algorithm a client signs its private_key_jwt assertions with.
A registered client, without any secret
JWS algorithm a client signs its private_key_jwt assertions with.
 
The new client secret; it is shown only once
Seeds the configured default clients at startup.
Configuration of the seeding of the default clients (authserver.clients.*).
Seeding of one default client.
Registers the CompromisedPasswordCheck port.
A code produced by the authenticator app
Serves the consent page the authorization endpoint redirects to when a client needs the user's approval, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated ConsentPageApi.
 
View model of the consent page.
A scope and its description.
Builds the ConsentPageModel from the registered client, the requested scopes and the scopes granted earlier.
Points the authorization endpoint at the custom consent page instead of the framework's generated one.
The created client; the secret is shown only once
The account an API request is made on behalf of: the owner of the bearer token.
Resolves the account of the request being handled.
Reads the identifier of a public client of the device flow, the only kind of client authentication that flow has for a device that cannot keep a secret: the client_id of the request to the device authorization endpoint and of the polling request to the token endpoint with the device code grant.
Authenticates a public client of the device flow by its identifier: the client must be registered and must have registered the none authentication method, which is what makes it public.
The request of a public client of the device flow to be authenticated by its identifier alone.
Installs the device authorization grant in the protocol chain.
Enables the OAuth 2.0 Device Authorization Grant on the protocol chain.
Configuration of the limit on the attempts to verify a user code (authserver.device.rate-limit.*): the user code is short, so the attempts a signed-in user and a client address may make in a window are bounded, on top of the expiry of the code itself.
Serves the device verification page, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated DeviceVerificationPageApi: the form where the user types the code the device shows.
Error handler of the device verification endpoint.
 
Raised while a device verification request is converted when its client address or user made too many attempts.
Rate limiter of the attempts to verify a user code, on the pattern of the other limiters of this server: Bucket4j token buckets in Caffeine caches (FixedWindowBuckets), one per client address and one per signed-in user, so a user code, which is short, cannot be guessed faster than the limits allow.
Guards the device verification endpoint.
Development only (dev profile): opens the SMS inbox page to everybody in the login chain, so an end-to-end test can read the codes the logging sender recorded without signing in.
Development only (dev profile): renders the SMS messages the logging sender recorded instead of sending them, so a developer or an end-to-end test can read the code of a sign-in or of a phone enrolment.
 
Provides the server certificate of the dedicated TLS port when the dev profile is active and none is configured, so a developer does not have to create one: a self-signed certificate for localhost is generated once per machine with the JDK's keytool, stored in a key store under ~/.irurueta-auth-server/ that only the owner can read (its password in a file next to it, as DevKeyEncryptionSecret keeps its secret) and reused at every start.
Enables the OpenID Connect dynamic client registration endpoint (/connect/register) when authserver.oidc.client-registration.enabled=true.
Validates the issuer of an ID token of Microsoft Entra ID in a multi-tenant application.
Chooses the error page Spring Boot's BasicErrorController renders for a browser: the error template with a generic text picked from the status only, and the branding.
Scheduled entry point that deletes the expired account tokens (password reset links), next to the clean-up of the expired authorizations.
Periodically deletes the expired and the abandoned authorizations.
Adds the authority of a verified factor to an authentication.
Reads, from the FactorGrantedAuthority instances of an authentication, the factors that prove something about it and when they were presented.
Finds the local account of a sign-in with an external provider and refuses it unless that account may sign in.
Failure handler of the sign-in with an external provider.
Success handler of the sign-in with an external provider.
Registers the sign-in with an external provider as an authentication factor, in two flavours that are never held together by one session: FederatedFactor.AUTHORITY (fed, a FactorStrength.PRIMARY factor): the normal case.
Decides which factor a federated sign-in proved: the strong one when the provider is trusted for its multi-factor authentication (authserver.social.providers.<id>.trust-mfa) and its upstream amr contains mfa, the ordinary one otherwise.
The user service of the providers that are plain OAuth 2.0 (GitHub), which have no ID token: the framework's service reads the profile from the provider's API, the verified primary e-mail address is read from /user/emails (through the domain port VerifiedEmailLookup, implemented by the GitHub adapter of infrastructure/github with a client generated from the contract of that GitHub operation), the account is resolved (found, linked by verified e-mail or provisioned, and refused when it may not sign in) and the principal becomes the local one, named after the account.
The user service of the OpenID Connect providers (Google, Microsoft, Apple): the framework's service loads the user as it always does (the ID token, and the UserInfo endpoint where the provider has one), then the account is resolved (found, linked by verified e-mail or provisioned, and refused when it may not sign in) and the principal becomes the local one, named after the account.
Maps the user an external provider described onto the user the rest of the server sees: the principal of the session, whose name is the local account's username (so it is the sub of the issued tokens, as it is for every other way of signing in), whose authorities are the account's own, and which still carries the claims of the provider (the amr among them).
The token buckets of one kind of key (a client address, an e-mail address, an identifier), built on Bucket4j and kept in a Caffeine cache.
Bucket4j and Caffeine time source backed by a Clock.
Reads the client certificate a reverse proxy that terminates TLS forwards in a header and leaves it where the servlet container leaves a certificate of its own, in the jakarta.servlet.request.X509Certificate request attribute, so the same X.509 filter and principal extractor serve both transports.
 
 
Keeps the identities page and its link post behind the multi-factor policy, as the passkeys and phone pages are: a session that only presented the password of an account that still has to complete its second factor is sent to the second-factor page instead of being able to add a way to sign in to the account.
Declares the chain customizer of the identities page.
Serves the account page of the linked identities and the form post that starts linking another one, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes them through the generated IdentitiesPageApi.
An identity of an external provider linked to the account
The provider that holds the identity.
Manages the identities of external providers linked to the authenticated account (the operations of the contract).
Maps the linked identities of the domain onto the DTO generated from the contract.
Answers the failures of the identities API as application/problem+json.
What the identities page shows of a linked identity.
Maps the linked identities of the domain onto the view model of the identities page.
Adds to the tokens of a user who signed in with an external provider the claim idp (the registration id of the provider).
Chooses the validator of the ID token of each registration: the framework's OidcIdTokenValidator, plus the EntraIssuerValidator for Microsoft (registered without an issuer, see ClientRegistrationMapper).
Thrown by StepUpGuard when the bearer token of an API call does not show a recent enough multi-factor sign-in for the operation.
Thrown when the value sent to bind a certificate is not a single PEM X.509 certificate within its validity period.
Raised when the public JWK set of a client is not a valid JWK set, is empty or holds a key with private material.
The verification code of a phone number is wrong, has expired or there is no verification in progress.
The claims this server adds to the tokens it issues, whatever their format, so the self-contained (JWT) access tokens and the reference (opaque) ones carry the same claims: RolesTenantAudienceTokenCustomizer applies it to the JWTs and ReferenceTokenClaimsCustomizer to the claims stored for a reference token (which the introspection endpoint returns).
Extension point that lets a feature add claims to the tokens issued by the authorization server: the access tokens, whether self-contained (JWT) or reference (their claims are returned by the introspection endpoint), and the ID tokens.
The result of a granted legacy implicit request: the access token and what the response needs to send it to the client in the fragment of its redirect URI.
Grants the legacy implicit request: after checking the client, its redirect URI, the user, the multi-factor policy, the state and the scopes, it issues an access token (never a refresh token) through the token generator, stores the authorization (so the token can be introspected and revoked) and returns it for the response handler.
Reads an authorization request with response_type=token.
An authorization request of the legacy implicit flow (response_type=token), not yet authenticated: the request as the client sent it and the user the request arrived with.
Registers the one client of the legacy implicit flow at start-up, when it does not exist yet: public, grant implicit only (no refresh token, no consent), one redirect URI, a restricted scope and audience and the lifetime of the flow.
Enables the legacy implicit flow.
The result of a legacy implicit request that was refused after its redirect URI had been checked, so the refusal is sent to the client in the fragment of the redirect URI.
Settings of the legacy implicit flow, bound from authserver.legacy-implicit.* (see application-legacy-implicit.yml).
Adds the legacy implicit flow to the authorization endpoint: its converter first, its provider first and its response handler in place of the framework's (which it delegates to for an authorization code).
Answers the authorization endpoint: for the two results of the legacy implicit flow it redirects with 302 to the registered redirect URI and carries the token, or the error, in its fragment (so it never reaches a server log as a query would); any other result is the framework's authorization code response and goes to the delegate.
Builds the token generator of the legacy flow with the claims customizers of the server, so its tokens carry the same roles, tenant, audience and authentication claims as those of the other flows.
The user name a magic link token is stored with.
Extension point that lets an authentication method customize the login/UI security filter chain.
Builds the content security policy of the server-rendered pages from the BrandingProperties: same-origin resources only and no framing, except that images may also be data: URIs (the QR code of an authenticator app, rendered in memory so its secret never becomes a resource of its own) and, when the branding logo is an absolute http(s) URL, come from its origin (img-src 'self' data: <scheme://host[:port]>).
Serves the login page, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated LoginPageApi, supplying the ordered login method fragments and the outcome of the last attempt to the template.
Maps the exception of a failed sign-in, which Spring Security keeps in the SPRING_SECURITY_LAST_EXCEPTION session attribute, to the key of the message the login page shows.
Adds the security headers of the server-rendered pages: the content security policy that LoginContentSecurityPolicy builds (same-origin resources only, no framing, and the origin of an absolute branding logo URL for images), X-Content-Type-Options and Referrer-Policy.
Extension point that lets an authentication method contribute a Thymeleaf fragment to the login page.
 
Permits the stylesheet shared by the server-rendered pages, which must load before anybody has signed in.
Configures how a user signs out of the login/UI chain: a POST to "/logout" (protected by CSRF, so a third-party page cannot sign the user out) invalidates the session, deletes its cookie and returns to the login page.
Serves the page that asks the user to confirm signing out, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated LogoutPageApi.
 
Decides whether an authentication has presented enough factors for the request being served: when the client or the user requires multi-factor authentication, the factors must satisfy the MfaPolicy; otherwise any authentication does.
Adds to the access and ID tokens how the user authenticated: amr (the RFC 8176 values of the factors really presented, plus mfa when there are at least two), acr (the class of the authentication, see AuthenticationContextClass) and auth_time (the epoch second the primary factor was presented, a number per OIDC; access tokens only, because the framework sets it on ID tokens).
Wires multi-factor authentication: Spring Security's multi-factor support (it enables the entry points for a missing factor authority; the factors are not required globally, because the MfaAuthorizationManager requires them only when the client or the user asks for it), the registry of AuthenticationFactor beans, the policy manager, and its application to the login chain and to /oauth2/authorize.
Translates the failures of the authenticator app, recovery code and trusted device endpoints to RFC 9457 problem details, answered as application/problem+json.
Applies the multi-factor policy to the login/UI chain: the consent page needs the factors the policy asks for, and a user who lacks a registered second factor is sent to the second-factor page instead of getting a 403.
Applies the multi-factor policy to /oauth2/authorize: a user whose client or account requires a second factor and has not presented one is sent to the second-factor page, with the authorize request saved, before any code is issued.
Builds the mtls_endpoint_aliases metadata claim of RFC 8705 (section 5): the addresses of the endpoints that authenticate clients on the dedicated TLS port, the issuer's host with authserver.x509.port.
Configuration of the mutual-TLS client authentication (authserver.mtls.*, RFC 8705).
The certificate authorities trusted for tls_client_auth, loaded once at startup.
 
Runtime OpenAPI documents of the authorization server, served by springdoc.
Reads what is posted to POST /login/ott: the token field holds either the token of a magic link (a UUID, which OttLinkAuthenticationProvider consumes) or the numeric code of an e-mail or SMS, which is tied to the identifier and the binding id the session of the browser holds.
Sends the browser back after a failed submission to POST /login/ott: a wrong numeric code goes to the page where it is typed (/login/ott?error), so the user can try again, and a magic link that is not valid goes to the sign-in page (/login?error).
Forgets the pending token of the session once it was used, then lets the delegate resume the request the sign-in interrupted.
Adds the one-time token methods to the login/UI chain through http.oneTimeTokenLogin(...): the request of a token (POST /ott/generate), the submission of a magic link token or a numeric code (POST /login/ott) and, as a second factor, the submission of a code (POST /login/second-factor/ott).
Hands the session authentication strategy of the chain to the second-factor filter.
Scheduled entry point that deletes what one-time tokens leave behind once it expired: the numeric codes, the pending phone verifications, the SMS cost ledger entries past their retention and Spring's expired link tokens.
Signs a user in with a numeric one-time code, delivered by e-mail or SMS, through VerifyOneTimeCodeUseCase.
Request to sign in with a numeric one-time code: the code the user typed, the identifier it was requested for and the binding id of the session that requested it.
Wires the one-time token methods into the login/UI chain.
Delivers the one-time tokens the use cases asked for, once the transaction that stored them has committed (TransactionPhase.AFTER_COMMIT; an event published outside a transaction is delivered at once) and off the request thread (@Async, on Spring Boot's applicationTaskExecutor).
Translates the failures of the phone endpoints to RFC 9457 problem details, answered as application/problem+json.
Registers the one-time token methods as authentication factors.
Resolves the request of POST /ott/generate to the token Spring's filter asks the token service for.
What a request to POST /ott/generate asks for, read from its form fields: through which channel, a numeric code or a magic link, and for a sign-in or as a second factor.
Delivers the token Spring's filter just generated, and answers every request the same way.
Confirms a magic link: consumes the token Spring's JdbcOneTimeTokenService stored and signs the user in with it.
Builds the magic link of a token.
Contributes the one-time token sign-in to the login page: a form that asks for the identifier and whether to receive a code or a magic link by e-mail, or a code by SMS, and posts it to POST /ott/generate.
Serves the two pages of the one-time token flow, as the contract apis/auth-server/web-pages/ auth-server-pages-v1.yaml describes them through the generated OneTimeTokenPageApi: the page where the code is entered (or that says to check the inbox when a magic link was requested) and the page a magic link opens, whose button posts the token.
The authentication providers of the one-time token methods, held together.
Rate limiter of the one-time token endpoints, on the pattern of the account endpoints' limiter: Bucket4j token buckets in Caffeine caches (FixedWindowBuckets).
A client address or an identifier requested or submitted more one-time tokens than its window allows.
Applies OttRateLimiter to the one-time token endpoints, which are Spring Security filters (so no controller advice sees their failures): POST /ott/generate counts as a token request and POST /login/ott and POST /login/second-factor/ott as submissions, each per client address and per identifier.
Configuration of the rate limiting of the one-time token endpoints (authserver.ott.rate-limit.*): the requests for a token (POST /ott/generate, the phone enrolment) and the submissions of a token or a code (POST /login/ott, POST /login/second-factor/ott, the phone verification).
Verifies a numeric one-time code, delivered by e-mail or SMS, as the second factor of the signed-in user through VerifyOneTimeCodeUseCase, which counts the failures against the second-factor lockout, locks after too many, clears the counter on success and records the security events: a locked second factor is rejected even for a correct code.
Decides through which channels a one-time code or link may be the second factor of a signed-in user.
Processes the post of the one-time code form of the second factor (POST /login/second-factor/ott), in the way TotpAuthenticationFilter processes the TOTP forms.
Contributes the one-time token second factor to the second-factor page: the buttons that send a code or a magic link by e-mail and a code by SMS to the signed-in user, each posting to POST /ott/generate with the second-factor purpose.
Request to verify a one-time code as a second factor: the authentication the user already holds (the primary factor), the code the user typed and the binding id of the session that requested it.
Renders a server-rendered page (a Thymeleaf template) to the text/html answer of an operation generated from the pages contract.
Enables pushed authorization requests (RFC 9126) when authserver.par.enabled is true: a client authenticates at POST /oauth2/par, receives a one-time request_uri and then sends the user to the authorization endpoint with it.
A WebAuthn credential registered by the account
Customizes the login/UI chain with the passkeys (WebAuthn).
Installs the passkeys (WebAuthn) in the login/UI chain.
Manages the passkeys of the authenticated account (the operations of the contract).
Maps the passkeys of the domain onto the DTO generated from the contract.
Answers the failures of the passkeys API as application/problem+json.
Registers a passkey (WebAuthn credential) as an authentication factor: a strong primary one, because the authenticator proves possession of the key and, with user verification, the user as well, so it satisfies the multi-factor policy on its own.
Contributes the passkey sign-in to the login page: a button and a field the browser fills with the passkeys it knows (conditional mediation).
Lets a request to the registration endpoints of the WebAuthn filters (/webauthn/register and everything below it) through only when the session satisfies the multi-factor policy of its account.
The authorization filter that guards the registration endpoints of the WebAuthn filters.
 
Contributes the "use a passkey" action to the second-factor page.
Applies the second-factor lockout to a passkey that completes a second-factor step.
 
Renders the account page where the signed-in user registers passkeys.
What the passkeys page shows of a passkey.
Maps the passkeys of the domain onto the view model of the passkeys page.
Declares the authentication provider of the password-based sign-in, instead of the one Spring Security builds from the UserDetailsService bean, to close a user enumeration.
Registers the password encoder of the password-based sign-in and of the client secrets: new values are encoded with Argon2, while bcrypt and PBKDF2 hashes stay verifiable (and are upgraded on the next successful sign-in).
Registers the password as an authentication factor: a primary one, which needs a second factor to satisfy the policy.
Contributes the username and password form to the login page, as every authentication method does through the LoginMethodFragment extension point.
Request of a password reset link
Reads the certificate sent to bind it to an account: exactly one X.509 certificate in PEM form, within its validity period, with a subject.
The marker a signed-in user leaves in the session when asking to link an identity of an external provider: the next sign-in with that provider, before the marker expires, links the identity to this account instead of signing anybody in.
Keeps the link marker (PendingIdentityLink) of the explicit link flow: the identities page records it in the session before sending the browser to the provider, and the user services consume it when the provider sends the user back.
The one-time token a browser has asked for and not used yet, kept in its session: for whom, through which channel, of which kind and for what purpose, and the binding id the numeric code was stored with.
Keeps, in the session, the recovery codes generated when an authenticator app is enrolled during the sign-in, from the post that confirms it until the page that shows them once (RecoveryCodesPageController), which takes them out of the session.
 
Shows, enrols, verifies and removes the phone number of the authenticated account, the number the SMS codes go to.
Maps the results of the phone use cases onto the DTOs generated from the contract.
Confirmation that a verification code was requested
The account has no verified phone number.
 
Keeps the phone page and its form posts behind the multi-factor policy, as the passkeys page is: a session that only presented the password of an account that still has to complete its second factor is sent to the second-factor page instead of being able to change the phone that receives the codes.
Serves the phone account page and the session-protected form posts it uses, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes them through the generated PhonePageApi.
The verified phone number of the account
The step-up rule of StepUpGuard for a browser session instead of a bearer token: while the account has a confirmed second factor, a sensitive change (removing the phone) needs a session that shows a multi-factor sign-in made within authserver.mfa.step-up-max-age; an account without a second factor cannot step up, so it is not asked to.
What a binding keeps of a certificate sent to the account API: its fingerprint, which identifies it, and its subject, which only tells the bindings apart.
Rules about the session a one-time token is used as a second factor in: it must already hold a primary factor, and the second factor must not be the very channel that signed the user in (an e-mail code after an e-mail sign-in would prove the same mailbox twice).
RFC 9457 problem details.
Base of the exception handlers of the REST API: every problem detail is answered as application/problem+json (RFC 9457), as the contracts under apis/ declare.
Extension point that lets a feature customize the OAuth 2.1 / OpenID Connect protocol endpoints, for example to add an authentication provider or a converter to the token endpoint.
Renders a text as a QR code, as a PNG image in a data: URI an authenticator app enrolment page can show without another request.
Forces a new sign-in: it discards the stale authentication of the session (the security context of the thread and the one stored by the repository), saves the request being served (typically /oauth2/authorize?...) so it resumes once the user has signed in again, and redirects to the login page.
Raised when an authorization request asks (through max_age) for a more recent authentication than the session has.
Generates a new set of recovery codes for the authenticated account.
 
 
Serves the page that shows, once, the recovery codes generated when an authenticator app was enrolled during the sign-in, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated RecoveryCodesPageApi.
A set of recovery codes, shown only once
Success handler of the second-factor post: when the post confirmed an enrolment and recovery codes are waiting to be shown, the browser goes to the page that shows them once (whose "Continue" button resumes the interrupted request); otherwise the delegate resumes the interrupted request straight away.
Adds the claims of IssuedTokenClaims to the reference (opaque) access tokens.
Creates the decoder of the client assertions of a client.
Registration of a new account
The new label of a passkey
Validates what the framework's default assertion validators leave out: the assertion must carry a jti, an iat no later than now (within the same clock skew the framework's timestamp validator allows) and an exp no more than the configured maximum lifetime after it, so a future iat cannot stretch the window, and its jti must not have been used before by the same client (RFC 7523, section 3).
Reset of a forgotten password with the token received by e-mail
Adds the claims of IssuedTokenClaims to the self-contained tokens (JWT access tokens and ID tokens): the roles, tenant and aud claims of an access token, then the claims of every JwtClaimsContributor, which also reach the ID tokens.
Enables scheduled tasks for every feature of the application (key rotation, clean-up of expired authorizations and account tokens, ...).
Serves the second-factor page, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated SecondFactorPageApi, supplying the ordered fragments of the second factors, the model attributes each of them contributes for the signed-in user and the outcome of the last attempt to the template.
Error handler of the authorization endpoint: a SecondFactorRequiredException goes to the entry point of the second-factor page, a ReauthenticationRequiredException to the one that forces a new sign-in, and any other error is answered as Spring Authorization Server's own handler does (a redirect to the client's redirect URI carrying the error, or a 400 when there is none).
Extension point that lets a second factor contribute a Thymeleaf fragment to the second-factor page.
 
Sends a user who has presented a primary factor but not yet the second one to the second-factor page, after saving the request being served (typically /oauth2/authorize?...) so the sign-in resumes where it left off once the second factor is verified.
Raised while an authorization request is validated when the user must present a second factor first.
Resolves the identifier of the account of a signed-in user.
Security filter chains of the authorization server: the protocol endpoints chain and the login/UI chain.
Records the authentications of users as security events: a success as SecurityEventType.LOGIN_SUCCESS and a failure as SecurityEventType.LOGIN_FAILURE.
Hands the session authentication strategy of the chain to the WebAuthn filter.
Administration of the signing keys, as the contract apis/auth-server/rest-server/auth-server-api-v1.yaml describes it through the generated SigningKeysApi.
Creates the first active and next keys at startup, so the server can sign tokens before the first scheduled rotation.
Maps the signing keys of the domain onto the DTO generated from the contract, so a domain model is never returned from SigningKeyAdminController.
A signing key, without its private half
Periodically applies the key lifecycle.
Runs the key lifecycle and announces it, so every caller (the endpoint, the scheduled job and the startup bootstrap) gets the same cache refresh without depending on the adapter that holds the caches.
 
Base of the exception handlers of the APIs that remove a sign-in method of the account (the linked identities, the bound certificates): both refuse to remove the last way to sign in and both need a recent multi-factor sign-in, so both answer those failures the same way.
Customizes the login/UI chain with the sign-in with external providers: http.oauth2Login(...) with the client registrations of the configured providers, the user services that resolve the local account, the success handler that grants the federated factor and, for Apple, the signed client secret and the form post callback.
Installs the sign-in with external providers in the login/UI chain.
Declares the generator of the Apple client secret, only while Apple is configured.
Contributes the sign-in with the configured external providers to the login page: one link per enabled provider, below the password form and the passkeys.
Settings of the sign-in with external providers, bound once from authserver.social.* and injected wherever one is needed; an invalid value stops the application at startup.
Settings of one provider.
Condition that holds when at least one social provider is configured, that is, when some authserver.social.providers.<id>.client-id has text.
Adapter of the CompromisedPasswordCheck port over Spring Security's CompromisedPasswordChecker (in production, the Have I Been Pwned range API, which only receives a hash prefix of the password).
Adapter of the PasswordHasher port over Spring Security's PasswordEncoder.
The phone number to enrol
Applies the OpenID Connect step-up parameters of an authorization request to the authentication of the session.
Guards the API operations that remove or reset a second factor (disabling the authenticator app, generating new recovery codes, revoking a trusted device): a stolen token, or a session left open, must not be enough to weaken the account.
Applies step-up authentication (acr_values and max_age) to /oauth2/authorize.
Honours the audience parameter of a token exchange request, which the framework parses but ignores.
 
Processes the post of the second-factor forms (POST /login/second-factor/totp): the TOTP form, the recovery-code form and the enrolment form (field enroll) of a user who has no authenticator app yet.
Verifies a TOTP code or a recovery code for the signed-in user, or the first code of an authenticator app being enrolled during the sign-in, which confirms it, through the TotpCodeVerifier.
Request to verify a second factor: the authentication the user already holds (the primary factor) and the code the user typed, and what kind of code it is.
Adds the TOTP second factor to the login/UI chain: the second-factor page and the post of its forms are open to a user who has signed in with a password (and only to such a user), and the filters that verify the code and recognise a trusted device are installed before the authorization check.
Hands the session authentication strategy of the chain to the TOTP filter.
What the code posted to the TOTP filter is.
Sends a posted code to the use case of its kind (TotpCodeKind): a TOTP code, a recovery code, or the first code of an authenticator app enrolled during the sign-in.
Wires the TOTP second factor into the login/UI chain.
Enrols, confirms and disables the authenticator app of the authenticated account.
Maps the results of the authenticator app and recovery code use cases onto the DTOs generated from the contract.
The secret of a pending authenticator app enrolment, as a URI and as a QR code
Registers the time-based one-time password (and the recovery codes that stand in for it) as an authentication factor: a second one, which only counts once a primary factor has been presented.
Contributes the TOTP forms to the second-factor page, as every second factor does through the SecondFactorFragment extension point.
Reads the PEM files of the trusted certificate authorities into trust anchors.
Lists and revokes the trusted devices of the authenticated account.
Writes the cookie that identifies a trusted device.
Maps the trusted devices of the domain onto the DTO generated from the contract, so a domain model is never returned from TrustedDeviceController.
Registers the trusted device as an authentication factor of strength FactorStrength.REMEMBERED: together with the password it satisfies the sign-in policy, so a trusted browser is not asked for the code again, but it is never reported in amr, acr or auth_time and never satisfies a step-up request (acr_values asking for the multi-factor class, max_age), which still needs a real second factor.
Lets a browser that was trusted earlier skip the second factor of a sign-in.
Thrown when an account has no trusted device with the requested identifier.
A browser on which the second factor is skipped until it expires
 
Spring Security UserDetailsService adapter over the FindUserAccountUseCase use case: it maps the domain UserAccount onto Spring Security's UserDetails through the UserDetailsMapper.
Maps the domain UserAccount onto Spring Security's UserDetails.
Registers the UserInfoMapper in the OpenID Connect UserInfo endpoint of the protocol chain.
Builds the OpenID Connect UserInfo response from the account of the user, limited to the granted scopes: the sub claim always; preferred_username, roles and tenant with the profile scope; email and email_verified with the email scope.
The code received by SMS
Completes a sign-in with a client certificate.
Adds the sign-in with a client certificate to the login/UI chain through http.x509(...).
Hands the session authentication strategy of the chain to the success handler.
Installs the sign-in with a client certificate in the login/UI chain, only while authserver.x509.enabled is true.
Registers the client certificate as an authentication factor: a strong primary one, because the holder proves possession of the private key during the TLS handshake (or the proxy did on the server's behalf), so a certificate satisfies the multi-factor policy on its own.
Refuses to start when a certificate may be forwarded in a header while the server rewrites the address of its clients from the forwarded headers.
The X.509 filter of the sign-in path.
Contributes the sign-in with a client certificate to the login page: a form with one button that posts, with the CSRF token, to POST /login/x509.
Configuration of the sign-in with a client certificate (authserver.x509.*).
Adds the dedicated TLS port that requests a client certificate, when authserver.x509.port is set.
The key store that holds the server certificate of the dedicated TLS port.
Decides which key store holds the server certificate of the dedicated TLS port: the configured one or, under the dev profile and with none configured, the generated one.
Loads the account a client certificate is bound to.