Refresh token
Configuration and usage guidance for Refresh token in Fortified ID Access.
Use the refresh_token grant to obtain new tokens from an existing refresh token. Send an HTTP POST with URL-encoded form values to the provider's token endpoint.
https://access.example.org/oidc/tenant1/token-endpointRequest parameters
Section titled “Request parameters”Client authentication is required by default. Use the method configured for the RP; see Client authentication. A successful PKCE code exchange alone does not enable credentialless refresh.
| Parameter | Description | Mandatory |
|---|---|---|
refresh_token | the current refresh token. | true |
grant_type | Supported value is refresh_token. | true |
Public refresh per client
Section titled “Public refresh per client”Set allow_public_refresh_token on the client's Relying Party configuration to explicitly allow refresh without client authentication. Omitted or false preserves the existing authenticated behavior. Use a JSON boolean, not the string "true".
{ "client_id": "public-client", "redirect_uri": ["https://client.example.org/callback"], "allow_public_refresh_token": true}This is an RP configuration fragment, not a complete provider or authenticator configuration. The option does not enable refresh-token issuance or change authorization-code exchange, other grants or discovery authentication methods. Do not configure token_endpoint_auth_methods: ["none"].
Configuration requirements
Section titled “Configuration requirements”- Enable
enable_refresh_tokenin both the Authorization Code Flow authenticator and the OIDC module. Set the authenticator'srefresh_token_ttlin milliseconds. - Apply the same opted-in RP configuration to both components. In Management Center, open the RP's Client authentication tab and select Allow token refresh without client authentication. Leave existing clients unchecked unless their integration is being changed deliberately.
- Keep
reuse_refresh_tokenset tofalseon the provider. Omit explicittoken_endpoint_auth_methodson this RP. Remove RPrefresh_token_persist_pipe_idandrefresh_token_resolve_pipe_idsettings and any provider refresh resolve pipe. These combinations are rejected for public refresh; custom pipes are not supported in this mode. - On a standalone node, use the built-in
LocalSessionStore. In a cluster, use the platform'sAtomicClusteredSessionStorewith at least one synchronous Hazelcast backup onvertx-web.sessions. Zero synchronous backups and other session stores are rejected when public refresh is enabled. This mode uses the existing session infrastructure and requires no additional deployment component. Configure absoluteissuerandtoken_endpointURLs in provider discovery metadata, and deploy consistent configuration to every node. - Complete a new authorization-code flow with PKCE. Access must verify the code's challenge, verifier, client and redirect bindings before that refresh token becomes eligible. Previously issued tokens without this server-recorded proof remain usable only through their existing authenticated path.
For an opted-in RP, the effective configured iss claim must be a static, absolute HTTP(S) issuer URL without user information, a query or a fragment. It must exactly match the provider's discovery_meta.issuer. Access selects the RP's id_token_claims object, falls back to its jwt_claims object only when id_token_claims is absent, and uses the authenticator's default claims only when both RP objects are absent. The selected object must contain iss; a missing claim does not trigger fallback to another object. The authenticator's default claims follow the same id_token_claims, then jwt_claims precedence. Resolve static deployment variables before loading the configuration; request- or pipe-dependent issuer expressions are not supported for public refresh.
An opted-in RP must also have a unique client_id in both the authorization-code authenticator's and the provider's RP lists. These issuer and uniqueness requirements apply when allow_public_refresh_token is true; omitted or false retains the existing behavior.
Request and rotation
Section titled “Request and rotation”An eligible client sends the following form values without an Authorization header or client credentials:
grant_type=refresh_token&client_id=public-client&refresh_token=<current-refresh-token>Send client_id even though no secret is sent. A code_verifier at refresh time cannot establish the required PKCE origin. If credentials are supplied, Access still validates them: incorrect or empty credentials are rejected rather than ignored.
On success, store the returned refresh_token before the next renewal and stop using its predecessor. Each use rotates the token. Replaying a spent token invalidates the surviving refresh-token chain, including when two renewal requests arrive concurrently. Serialize refresh requests in the client; after replay rejection, start a new authorization flow.
Treat refresh tokens as opaque values. If a refresh response is lost, the client cannot know whether rotation succeeded. Retrying the previous token can trigger replay rejection; obtain a new authorization code with PKCE to recover.
The chain remains bound to the client and provider where it was activated. Unknown clients, incorrect bindings, invalid tokens and expired tokens are rejected. Tracked tokens keep rotation and replay checks even when valid client credentials are supplied; they do not fall back to legacy refresh processing on failure.
Session storage and cluster changes
Section titled “Session storage and cluster changes”Public refresh grants are bound to the session-storage owner's cluster membership generation. A detected membership change, storage-owner migration or network partition/merge invalidates affected grants. Obtain a new authorization code with PKCE; the old grants remain invalid after the network heals. Network failure detection is not instantaneous, so do not assume that every operation fails as soon as connectivity is lost.
A membership change can occur when a node joins, leaves, restarts or crashes; ownership of session data can move between nodes. Which grants are affected depends on the change and where their session data is owned.
Loss of local session state or a complete cluster restart also requires a new authorization-code flow with PKCE. Synchronous backups do not provide durable recovery after the whole cluster loses its session state.
These storage and topology requirements apply to public refresh. Existing authenticated refresh, including reuse_refresh_token: true, retains its behavior when allow_public_refresh_token is omitted or false.
Lifetime, scope and deactivation
Section titled “Lifetime, scope and deactivation”For an opted-in PKCE flow, setting refresh_token_ttl shorter than token_code_ttl does not shorten the window for redeeming a valid authorization code. The code must still be redeemed within its original validity period.
The chain expires after the authenticator's refresh_token_ttl, measured from successful code exchange, not from issuance of the authorization code. Rotation does not extend this absolute lifetime. Expiry or loss of session-store state requires a new authorization flow.
A family allows at most 1,024 rotations. The next rotation revokes the family and requires a new authorization code with PKCE. Access retains the spent-token hash history through this limit rather than discarding replay evidence to continue renewal.
Omit scope when refreshing, or send the same scope set as the original grant. This version rejects scope changes with invalid_scope, including requests for a smaller set. Token claims are reused with renewed token timestamps and the current signing key; refresh does not rerun user authentication, MFA or authorization pipes. The option does not change existing offline_access handling or issuance policy.
To disable credentialless refresh, clear the client option or set it to false, then apply/reload the provider configuration on every node. Subsequent credentialless requests are rejected. Where valid client credentials are still available, tracked tokens remain subject to the same rotation, lifetime and replay checks.
Stopping refresh or revoking a refresh-token chain does not immediately revoke access tokens already issued. This option alone does not establish compatibility with Exchange or Outlook.