Configuration
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
This page lists every configuration property the four applications implement: auth-server, bff,
resource-server and service-client. For each one it gives the environment variable that application*.yml maps
to it, the default when nothing is set, what it does and the profile where it matters.
A property can be set in several ways:
-
in
application.ymlor a profile file (application-<profile>.yml) of the application’sbootmodule; -
through the environment variable that the yml file maps with a placeholder such as
${AUTHSERVER_ISSUER_URL:http://localhost:9000}(the value after the colon is the default); -
through any other environment variable, by Spring Boot’s relaxed binding: upper case, dots and dashes replaced by underscores. For example
AUTHSERVER_MFA_MAX_FAILED_ATTEMPTSsetsauthserver.mfa.max-failed-attempts, even though no yml file maps it; -
as a command-line argument, for example
--authserver.par.enabled=true.
When a yml file sets a value, that value is the effective default, even if the code has another one. The tables say
so where the two differ. Most settings are bound into validated @ConfigurationProperties records: an invalid value
(a negative duration, an unknown provider, a malformed country code, …) stops the application at startup with a
message that names the property.
In the tables, "none" means there is no default and "-" means no yml file maps an environment variable (relaxed binding still works).
Profiles
| Profile | Application | What it switches |
|---|---|---|
|
|
Local development only. Starts the root |
|
|
Activated by the integration tests ( |
|
|
Sends SMS through Twilio ( |
|
|
Sends SMS through Amazon SNS ( |
|
|
Enables the legacy implicit flow demo for the one client |
|
|
Starts the root |
|
|
Validates bearer tokens by introspection at the authorization server instead of as JWTs
( |
|
|
Runs |
|
|
Runs |
|
|
Runs |
The SMS sender is chosen by profile, never by a property. The profile expressions are twilio & !sns (Twilio),
sns (SNS) and (dev | test) & !twilio & !sns (logging sender). With none of dev, test, twilio or sns
active, auth-server refuses to start (MissingSmsGatewayConfiguration), so a deployment never keeps its messages in
memory by mistake. A deployment therefore always activates twilio or sns.
Secrets
These values must come from the environment (or a secret store that feeds it) and never from a file in the repository. Never write a real value in a yml file or in these docs.
| Property | Environment variable | Notes |
|---|---|---|
|
|
Encrypts the private signing keys at rest. Required without |
|
|
Hex-encoded salt of the same encryption. Required without |
|
|
Database password. |
|
|
Secret of the seeded |
|
|
Client secrets at the identity providers. |
|
|
PKCS#8 PEM text of the |
|
|
Twilio API token ( |
|
|
Password of the server key store of the X.509 TLS port. |
|
|
Database password of the BFF. |
|
|
Secret of the BFF at the authorization server; the BFF does not start without it. |
|
|
Secret the resource server uses at the introspection endpoint ( |
|
|
Secret of the |
|
|
PKCS#8 RSA private key that signs the client assertion ( |
|
|
The user’s access token exchanged by |
AWS credentials of the sns profile and SMTP credentials, when the relay needs them (spring.mail.username,
spring.mail.password), also come from the environment only.
auth-server
All the project properties of the authorization server live under authserver.*. The framework properties it uses
are in Framework properties the project relies on.
Issuer and API
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
|
Audience a bearer token must list to call |
The issuer itself is the framework property spring.security.oauth2.authorizationserver.issuer
(AUTHSERVER_ISSUER_URL, default http://localhost:9000).
Seeded clients
At startup ClientSeeder creates the default clients whose redirect URIs are configured; nothing is seeded by
default. Lists are comma-separated. See Registered clients.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
none |
Secret of the confidential |
|
|
none; |
Redirect URIs of the |
|
|
none; |
Where the user may be sent after an RP-initiated logout ( |
|
|
none; |
Redirect URIs of the public |
|
|
none; |
Post-logout redirect URIs of the |
Keys and tokens
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
none (required without |
Passphrase that encrypts the private signing keys at rest. Without |
|
|
none (required without |
Hex-encoded salt of the key encryption. Same rules as the password. |
|
- |
|
How long a signing key signs before it is replaced. |
|
- |
|
Schedule of the job that checks whether the signing key must rotate (every hour). |
|
- |
|
Minimum time a retired signing key stays published, so tokens it signed can still be verified. |
|
- |
|
Clock skew of the token consumers, added to the longest token lifetime when a retired key is kept. |
|
- |
|
How long the JSON Web Key set read from the database is cached. |
|
- |
|
Schedule of the job that deletes expired authorizations (every hour). |
|
- |
|
Age after which an authorization that never got a token is deleted. |
Accounts and passwords
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Checks new passwords against the Have I Been Pwned range API. |
|
- |
|
Rate limits the unauthenticated |
|
- |
|
Length of the fixed counting window. |
|
- |
|
Requests allowed per client address and window. |
|
- |
|
Requests allowed per e-mail address and window. |
|
- |
|
Most addresses and e-mails tracked at once. |
|
- |
|
Schedule of the job that deletes expired account tokens (every hour, at minute 30). |
Multi-factor authentication
No yml file sets these; the record defaults apply. See Multi-factor authentication and step-up.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Failed second-factor attempts before the second factor of the user is locked. At least 1. |
|
- |
|
How long the second factor stays locked. |
|
- |
|
How long a remembered browser (trusted device cookie) stands in for the second factor. |
|
- |
|
Issuer shown by authenticator apps for the TOTP enrolment. |
|
- |
|
Longest age of the |
Passkeys
The defaults are the local development values; a deployment must set its public host. See Passkeys (WebAuthn).
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
|
Relying party name shown by the authenticator. |
|
|
|
Relying party id: the host name the credentials are scoped to. Must not be blank. |
|
|
|
Origins browsers may run the WebAuthn ceremonies from (comma-separated). At least one. |
One-time tokens
E-mail codes, magic links and SMS codes. A 0 value of the code settings falls back to the default; a negative one
fails at startup. See One-time tokens (e-mail, magic links and SMS).
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Digits of an e-mail or SMS code. |
|
- |
|
How long a code stays valid. |
|
- |
|
How long a magic link stays valid. |
|
- |
|
Wrong codes accepted before the code is spent. |
|
- |
|
Schedule of the job that deletes expired codes, phone verifications, SMS ledger entries and link tokens (every hour, at minute 15). |
|
- |
|
Rate limits |
|
- |
|
Length of the fixed counting window. |
|
- |
|
Code or link requests per client address and window. |
|
- |
|
Code or link requests per identifier (user name, e-mail or phone) and window. |
|
- |
|
Code submissions per client address and window. |
|
- |
|
Code submissions per identifier and window. |
|
- |
|
Most addresses and identifiers tracked at once. |
SMS
Phone numbers, cost control and the SMS gateways. Costs are in millionths of the billing currency. A 0 duration or
count falls back to the default; a negative value fails at startup. See One-time tokens (e-mail, magic links and SMS).
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Region a number typed without a country prefix is read in (ISO 3166-1 alpha-2, upper case). |
|
- |
|
Regions SMS may be sent to (comma-separated, upper case). |
|
- |
empty |
Price of one message per region, as a map (for example |
|
- |
|
Price assumed for a region without an entry in |
|
- |
|
Window of |
|
- |
|
Most that may be spent per window; a message over the cap is not sent. |
|
- |
|
Most that may be spent per day. |
|
- |
|
Digits of the code that verifies a phone being enrolled. |
|
- |
|
How long that verification code stays valid. |
|
- |
|
Wrong verification codes accepted before the code is spent. |
|
- |
|
How long the spend ledger is kept. At least one day. |
|
- |
|
Messages the in-memory outbox of the logging sender keeps ( |
The Twilio gateway (twilio profile, application-twilio.yml) needs the account SID and token, and a sender: from
or messaging-service-sid. Without them it fails at startup.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
none |
Twilio account SID ( |
|
|
none |
Twilio auth token ( |
|
|
none |
Sender number in E.164 ( |
|
|
none |
Twilio Messaging Service that picks the sender, used when |
The SNS gateway (sns profile) has no project property: see Profiles.
Sender and links of the one-time token and account e-mails. The SMTP server is the framework’s spring.mail.*. See
One-time tokens (e-mail, magic links and SMS) and Passwords and accounts.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
|
Sender address of the e-mails. |
|
|
Base of the links in the e-mails (magic links). It shares the issuer’s environment variable. A trailing |
|
|
- |
|
Language of the e-mails. |
Social login
A provider is enabled only when its client-id has text; with none configured there is no social login at all.
Provider ids are google, microsoft, apple and github; any other id fails at startup. An enabled provider must
have its secret (Apple: team-id, key-id and private-key). See Social login (identity brokering).
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
none |
Google OAuth client id. Enables Google. |
|
|
none |
Google client secret. Secret. |
|
|
|
Counts Google’s own multi-factor authentication when its |
|
|
none |
Microsoft Entra ID application id. Enables Microsoft. |
|
|
none |
Entra client secret. Secret. |
|
|
|
|
|
|
empty |
Tenants a multi-tenant sign-in is limited to (comma-separated). Empty: the tenant id when |
|
|
|
Same as for Google. |
|
|
none |
Apple Services ID. Enables Apple. |
|
|
none |
Apple developer team id, issuer of the client secret JWT. |
|
|
none |
Id of the Apple key that signs the client secret. |
|
|
none |
PKCS#8 PEM text of the |
|
- |
|
Lifetime of the generated client secret JWT; positive and at most 180 days. It is cached for half of it. |
|
|
|
Same as for Google. |
|
|
none |
GitHub OAuth app client id. Enables GitHub. |
|
|
none |
GitHub client secret. Secret. |
|
|
|
Same as for Google. GitHub is plain OAuth 2.0, so it only matters if its sign-in carries an |
The record also accepts tenant, allowed-tenants, team-id, key-id, private-key and client-secret-ttl for
any provider, but only Microsoft uses the first two and only Apple the others.
X.509 client certificates
All off by default. See X.509 client certificates.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
|
Enables the certificate sign-in ( |
|
|
empty |
Header in which a reverse proxy forwards the client certificate. Needs |
|
|
empty |
Addresses or CIDR ranges whose forwarded header is honoured (comma-separated). |
|
|
|
Port of a dedicated TLS connector that asks for a client certificate. |
|
|
|
|
|
|
empty |
Path of the key store with the server certificate of the TLS port. Required with a |
|
|
empty |
Password of that key store. Secret: from the environment only. |
|
- |
|
Type of that key store. |
mTLS and client assertions
Client authentication at the token endpoint. See Client credentials and service-to-service calls.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
empty |
File paths of the certificates (PEM) of the authorities trusted for |
|
- |
|
Longest accepted lifetime ( |
|
- |
|
Schedule of the job that deletes the expired assertion |
Device grant
Attempts to verify a user code are limited per client address and per signed-in user (429). See
Device authorization grant.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Turns the limit on or off. |
|
- |
|
Length of the fixed counting window. |
|
- |
|
Attempts per client address and window. |
|
- |
|
Attempts per user and window. |
|
- |
|
Most addresses and users tracked at once. |
Pushed authorization requests
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Enables the pushed authorization request endpoint |
OIDC dynamic client registration
See Registered clients.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Enables |
Legacy implicit
Bound only under the legacy-implicit profile, whose file sets every value. Never enable it in production. See
Implicit flow (legacy demo) and PAR.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Id of the one implicit client the profile seeds. |
|
|
|
Exact redirect URI of that client. |
|
- |
|
Scopes of that client. Not empty. |
|
- |
|
Audience of the implicit access tokens. |
|
- |
|
Lifetime of the implicit access tokens; positive and at most |
UI branding
Branding of the server’s HTML pages. See Login pages and the BFF.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Name shown on the pages. A blank value falls back to the default. |
|
- |
empty |
URL of a logo image; no logo when empty. |
|
- |
empty |
Footer text; no footer when empty. |
bff
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
Base URI of the resource server the BFF calls. |
|
|
- |
|
Relative paths the |
The BFF’s OAuth client registration is framework configuration: see Framework properties the project relies on.
resource-server
See Resource server.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
- |
|
Requires a recent strong authentication (RFC 9470) to delete a document. |
|
- |
|
|
|
- |
|
Longest age of the token’s |
The issuer, accepted audiences and introspection settings are framework properties: see Framework properties the project relies on.
service-client
The service-client.* values are mapped to environment variables only in the client-credentials and
token-exchange profile files; the defaults below are the same in code and in those files. See
Client credentials and service-to-service calls.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
|
Client authentication method: |
|
|
|
Client id at the authorization server. |
|
|
empty |
Client secret for |
|
|
Token endpoint. |
|
|
|
|
Requested scopes (comma-separated). |
|
|
|
How long before expiry a cached token is renewed. Not negative. |
|
|
|
Sends a DPoP proof with each token request and API call, so the tokens are sender-constrained. |
|
|
empty |
Name of a |
|
|
empty |
Unencrypted PKCS#8 RSA private key (PEM text, |
|
- |
none |
File with that key, used when |
|
- |
none |
|
|
|
Base URI of the resource server. |
|
|
|
|
Also prints the access token ( |
|
|
none |
The user’s access token to exchange ( |
The device flow CLI (device-flow profile) has its own properties, normally given as command-line arguments
(--device-flow.issuer=…) or environment variables (DEVICE_FLOW_ISSUER, relaxed binding). See
Device authorization grant.
| Property | Environment variable | Default | Description |
|---|---|---|---|
|
|
none (required) |
Issuer URL of the authorization server ( |
|
- |
|
Public client used for the device grant ( |
|
- |
|
Requested scope, space-separated ( |
|
- |
|
Prints the access token once obtained ( |
Framework properties the project relies on
These properties are owned by Spring Boot or Spring Security, not by the project. The table gives the value the project’s yml files give them.
| Property | Environment variable | Value | Notes |
|---|---|---|---|
auth-server |
|||
|
|
Framework-owned. Issuer of every token and base of the metadata. Also read by the |
|
|
|
|
Framework-owned. Under |
|
|
|
Framework-owned. |
|
|
empty |
Framework-owned. Secret. |
|
|
|
Framework-owned. SMTP relay; |
|
|
|
Framework-owned. |
|
- |
|
Framework-owned. Flyway migrates the schema at startup. |
|
- |
|
Framework-owned. HTTP port. |
|
- |
not set |
Framework-owned. With |
|
- |
|
Framework-owned. Language used when the request names none. |
|
- |
|
Framework-owned. The language of a response never depends on the machine. |
|
- |
|
Framework-owned. Error bodies do not carry the requested path. |
|
- |
|
Framework-owned. Only health and info actuator endpoints are exposed (also in |
|
- |
|
Framework-owned. Serves the OpenAPI documents compared with the contracts. |
|
|
|
Framework-owned. The file is resolved against the working directory (the |
bff |
|||
|
|
|
Framework-owned. Database of the sessions. |
|
|
|
Framework-owned. The password is a secret. |
|
- |
|
Framework-owned. The Spring Session schema comes from the BFF’s Flyway migration ( |
|
|
none (required) |
Framework-owned. Secret of the |
|
- |
client id |
Framework-owned. The registration of the BFF at the authorization server. |
|
|
Framework-owned. Issuer the BFF discovers the endpoints from. |
|
|
- |
|
Framework-owned. |
resource-server |
|||
|
|
Framework-owned. Issuer of the accepted JWTs. |
|
|
|
|
Framework-owned. Accepted audiences. Must not be empty; the |
|
|
none (required under |
Framework-owned. Introspection endpoint ( |
|
|
none (required under |
Framework-owned. Client the resource server introspects as ( |
|
|
none (required under |
Framework-owned. Its secret ( |
|
- |
|
Framework-owned. No Swagger UI. |
|
- |
|
Framework-owned. A certificate-bound token needs |
service-client |
|||
|
- |
|
Framework-owned. The service client is a command-line tool with no web server. |
|
- |
|
Framework-owned. Keeps the CLI output clean. |
|
- |
none |
Framework-owned. Holds the client certificate named by |
Keeping this page complete
spring-boot-configuration-processor is declared in the root pom.xml, so each module with a
@ConfigurationProperties record writes target/classes/META-INF/spring-configuration-metadata.json at build time.
Those files list every key of the records and can serve as a checklist when a property is added. They do not capture
the defaults set in compact constructors, nor the keys read with @Value, @ConditionalOnProperty,
Environment.getProperty or a @Scheduled cron placeholder (authserver.keys., authserver.tokens.cleanup.,
authserver.account.cleanup.cron, authserver.ott.cleanup.cron, authserver.password.compromised-check.enabled,
authserver.par.enabled, authserver.oidc.client-registration.enabled, …). Check those by hand in the code and in
the application*.yml files.