When a Keycloak FAPI 2.0 build is the right design for financial APIs
Keycloak can enforce FAPI-style settings through client policies, bind tokens to the client with DPoP, accept pushed authorization requests and run CIBA decoupled authentication, but profile coverage must be confirmed against the release you will run. The current Keycloak release is 26.8.1, so confirm each profile requirement you need against that version and the Keycloak server administration guide before you commit to a design. This build fits banks, fintechs and open banking teams that must protect account and payment APIs and customer consent flows in infrastructure they control, and that need an identity server they can audit and operate themselves.
Decide before design starts which FAPI generation your APIs must meet, and which parties will be your relying parties and clients. Also decide whether consent will be captured in a browser redirect, in a decoupled flow on a second device through CIBA, or both, because each path changes client policy scope, token lifetimes and the customer experience. Settle which sender-constrained token model your resource servers will verify and whether your API gateway or resource servers can validate DPoP proofs. Ask the vendor or your own engineers to confirm these points rather than assuming them.
Set the organizational owners early. Security architecture owns the profile mapping, the API platform team owns resource server validation, and the fraud or customer channel team owns CIBA notification and consent UX. Your compliance team should confirm which external assessment applies to your entity, because a Keycloak configuration can support evidence but does not replace an independent assessment. If the design cannot be tested against your required profile with a documented result, treat that gap as a blocker for the go-live decision.
Which FAPI, DPoP, PAR and CIBA settings fit each API
This table compares the main configuration choices for financial-grade APIs in Keycloak: which FAPI profile to target, how to sender-constrain tokens, whether pushed authorization requests are required, and when CIBA fits. Read each row against the APIs your partners and regulators expect, then confirm the exact client policy settings in the Keycloak documentation before you commit.
| Choice | When it fits | What changes for clients and resource servers | Verify in Keycloak docs before choosing |
|---|---|---|---|
| FAPI 1.0 profile | Existing partner or open banking APIs whose contracts still name FAPI 1.0 | Clients must meet the profile's request and token rules, enforced through a client policy | Which FAPI 1.0 variant the client policy enforces and its exact settings |
| FAPI 2.0 profile | New APIs or partner programs that reference FAPI 2.0 and its security guidance | Clients follow the newer profile rules, and resource servers must check constrained tokens | Which FAPI 2.0 requirements the policy covers and which remain the API team's job |
| DPoP sender constraint | Public or browser-based clients that cannot hold a client certificate | Clients sign a proof of key possession on each request, and resource servers verify it | Supported DPoP proof algorithms, token binding behavior and resource server validation steps |
| Mutual TLS sender constraint | Confidential server-side clients that can manage certificates and a trusted CA | Clients present a client certificate on token and API calls, so gateways must pass certificate data | How certificates bind to tokens, the proxy header settings needed and the rotation steps |
| PAR required | Clients sending sensitive authorization parameters, such as claims requests or high-value consent scopes | Clients push the request first and receive a request URI, so fewer parameters travel in the browser | Whether the client policy enforces PAR for all flows and the request URI lifetime |
| PAR optional | Migrations where some clients still send all parameters in the front channel | Both pushed and direct requests succeed, so weaker requests remain possible during the transition | Whether a client policy or per-client setting can disable direct requests before go-live |
| CIBA decoupled authentication | Consent or step-up approval on a separate device, such as a phone, for a sensitive action | The consuming client starts a backchannel request and waits for approval while the user approves on another device | Supported delivery modes, the authentication device channel and how binding messages are handled |
How PAR, DPoP and CIBA requests flow through Keycloak
The diagram starts with the client application pushing its authorization request to Keycloak before the browser redirect, so request parameters never travel through the front channel. Keycloak checks the client policy at that point, then the user signs in on the browser and the client redeems the code with a DPoP proof that binds the token to the client's key. The separate CIBA branch shows the back channel, where the authentication device approves the request out of band. Treat it as illustrative and check every step against the profile you target, since client policy settings decide which checks apply.
Illustrative flow of PAR, DPoP-bound tokens and the CIBA branch; verify against your target profile.
How client policies enforce FAPI profiles in Keycloak
Keycloak enforces a FAPI profile through client policies, which bind a set of executors to the clients they match. A client profile groups executors such as PKCE enforcement, signed request object requirements, sender-constrained token requirements and allowed signing algorithms, and a client policy decides which clients receive that profile, usually by client role or by the client's own attributes. Administrators create the profile in the Admin Console, attach the executors that match the FAPI version they target, and then scope the policy to the clients in question. Settings that a profile enforces appear as locked or validated values, so the team should review the executor list line by line rather than assume a profile name guarantees a particular behavior. The client-policies configuration in the realm is the place to confirm what is actually applied.
Realm-wide policies and per-client assignment are the two levels the admin controls. A realm-level policy is convenient for a dedicated financial-grade realm, but it also reaches clients that were never meant to meet FAPI requirements, including internal tools and development clients. Assigning the profile to a narrow set of clients keeps the change contained, at the cost of more policy maintenance as clients are added. Before enabling any profile, list every existing client, record its redirect URIs, grant types, client authentication method and signing algorithms, and test each one against the new policy in a non-production realm. A profile can block a client that worked before, for example one that uses a client secret where the profile requires a stronger client authentication method. Confirm which FAPI profile version the Keycloak release implements against the current Keycloak documentation before you promise a specific conformance level to an auditor or partner.
Setup choices by client type: browser apps, mobile apps and server-to-server services
Browser-based clients run in an environment you do not control, so they cannot keep a client secret safely. Keycloak clients in this situation are public clients that use the authorization code flow with PKCE. For the FAPI 2.0 profile, the design adds pushed authorization requests so that authorization parameters are sent to Keycloak over a back channel before the browser is redirected, and sender-constrained tokens with DPoP so that a stolen access token cannot be replayed by another party. Both depend on the front-end library, not only on Keycloak.
- Library support for PAR and DPoP: Confirm that the OAuth or OIDC library in your framework can send a pushed authorization request and generate DPoP proofs. Many libraries handle one feature and not the other.
- Key handling in the browser: Check where the DPoP key pair is generated and stored, and whether the library rotates it on refresh.
- Resource server checks: Confirm that each API validates the DPoP proof and the binding to the access token, not only the bearer signature.
- Client policy enforcement: Assign the FAPI-related client policy to the realm client so that non-compliant requests are rejected rather than silently accepted.
- Redirect and token storage: Review exact redirect URIs and avoid long-lived tokens in local storage.
Before go-live, test a sign-in end to end with a token replay attempt against your API and confirm that the request is rejected.
Native mobile apps are public clients that run on devices the organization does not control. The main design question is where the sender-constraining key lives. DPoP requires a private key that the app uses to sign each proof, and that key must be protected by the platform, ideally in hardware-backed storage where the device offers it. Keycloak still validates the proof and issues a token bound to the key, so the risk moves to how the app generates, stores and rotates that key.
- Key storage approach: Decide whether keys live in the platform keystore or secure enclave and confirm the library uses it, rather than a file or preference store.
- Key lifecycle: Define what happens on reinstall, device change, sign-out and key compromise, including revoking sessions in Keycloak.
- Redirect handling: Use the platform's recommended redirect mechanism with PKCE and confirm the library supports PAR for the authorization request.
- Token refresh behavior: Check that refresh requests carry a valid DPoP proof and that the app handles rejected proofs without a loop.
- Device and OS support: Confirm which minimum OS versions expose the key storage features your design needs.
Before release, verify that a token copied off the device cannot be used without the device-bound key, and that sign-out clears both tokens and key material.
Server-to-server services can keep a secret or a private key, so they are typically confidential clients. Their access tokens are often obtained with the client credentials grant. CIBA is different: a backend client starts an authentication request for a named user, and the user approves it on another device, such as a phone, through a notification path. The client then polls or receives a callback from Keycloak. The notification channel is outside Keycloak, so it needs its own design and testing.
- Client authentication method: Choose between a client secret and a signed client assertion for the confidential client, and document who rotates it and how often.
- Notification path to the user: Identify the channel that reaches the user's device, who operates it, and what it shows the user about the request being approved.
- Binding message and expiry: Confirm that the approval request shows enough context for the user to recognize the transaction and that requests expire within a set window.
- Delivery mode: Decide between polling and push delivery for the result, and confirm the client library supports the mode you chose.
- Service account scope: Limit the roles and scopes of each service account to the calls it needs.
Before go-live, run a test in which the user denies the request and another in which the request times out, and confirm the client handles both without granting access.
Setup sequence for a FAPI-conformant realm
This sequence takes a Keycloak realm from release selection to a tested, observable configuration that enforces the chosen FAPI profile for clients, with PAR, DPoP and CIBA enabled only where your APIs need them. Each step closes with a check you can record as evidence before go-live.
Confirm the release and profile target
Confirm the Keycloak release you will run. The current release on keycloak.org is 26.8.1, but your environment may differ, so record the exact version you deploy. Ask your security lead and API owners to name the target profile in writing, FAPI 1.0 or FAPI 2.0, and state whether CIBA is in scope. Read the release notes for your version to confirm how client policies, PAR and DPoP behave in it. Check: a one-page decision record that names the release, the profile, and the optional features, signed off by security and the API owner.
Inventory clients and APIs
List every client, redirect URI, grant type, token consumer and resource server that will sit behind the realm. Mark each client as confidential or public, and note the data sensitivity of the APIs it calls. Identify which clients need sender-constrained tokens and which use backchannel authentication. Assign an owner to each row. Check: an inventory where every client has an owner, a flow type and a target profile classification. Any unclassified row blocks the next step.
Build a non-production realm behind TLS
Create a separate non-production realm on a server that uses TLS for all communication. Place a reverse proxy in front of Keycloak with path restrictions, and expose the admin console and Administration REST API on a different hostname or context path from public frontend URLs, as the Keycloak production configuration guide describes. Platform engineering owns this step, with security reviewing the proxy rules. Check: from outside your admin network, the admin paths do not respond, and every public frontend URL resolves only over HTTPS.
Configure client policies for the profile
Define client policies and their executors so that the chosen profile is enforced on the clients in your inventory, not left to each client administrator. Typical controls cover allowed signing algorithms, client authentication methods, PKCE and redirect URI rules. Confirm the exact executors available in your release against the server administration guide before you rely on them. Assign each client to the correct policy. Check: in test, a client with a non-conformant setting is rejected or fails authentication, and a conformant client completes its flow.
Enable PAR and DPoP per client
Turn on pushed authorization requests and DPoP for the clients that your profile and APIs require. Confirm whether your release and profile make PAR mandatory for a given client type. Update each resource server to validate DPoP proofs, including proof binding to the access token and the request method and URL. Client teams own the client settings, and the API team owns resource server validation. Check: a token request without a valid DPoP proof is rejected, the issued token carries the DPoP token type, and a resource server refuses the token when the proof is missing or does not match.
Configure CIBA where it is in use
Set up decoupled CIBA only for flows that need a user to approve a request on a separate device, such as payment confirmation. Define which identity channel receives the authentication request, how the client learns the result, and the expiry for pending requests. Confirm the supported delivery modes and settings in the current server administration guide for your release. Check: a test request produces an authentication request ID, the approval on the test device issues a token bound according to your policy, and a denied request returns a clear error to the client.
Test token claims and key handling
Request tokens for each client in the test matrix and decode them. Verify issuer, audience, subject, expiry, scopes and any authentication context claims your profile requires. Check that the signing algorithm matches your policy, that the published key set returns the expected keys, and that client secrets or private keys are stored outside realm exports. Document the key rotation procedure and rehearse it once in test. Check: a saved matrix with one sample token per client, the claim checks passed, and the rotation rehearsal recorded.
Enable metrics and logging before go-live
Start Keycloak with metrics enabled on the management interface, and configure your Prometheus-compatible collector to scrape the metrics endpoint. Enable login and admin event logging and forward the events to the log destination your security team monitors. Define alerts for spikes in failed token requests and failed logins. Operations owns the dashboards, and security owns the alert rules. Check: the metrics endpoint returns data to the collector, a test login and a test admin change both appear in the log destination, and each alert fires in a controlled test.
Security risks in sender-constrained and decoupled authentication flows
Sender-constrained tokens and decoupled CIBA approvals remove some attacks and create others. The cards below name the Keycloak control that closes each gap, so reviewers can check configuration rather than rely on a general assurance. Each one is a point to test before a financial-grade API goes live.
Bearer tokens replayed at resource servers
A FAPI client that receives a DPoP-bound access token still gets a plain bearer token if the API accepts it without checking the proof. Confirm that every protected resource validates the DPoP proof and the cnf claim against the access token, and that no legacy route accepts Bearer authorization. Test with a token copied from one client and replayed by another.
Weak DPoP proof and nonce checks
DPoP proofs must be bound to the HTTP method, the target URI, a fresh iat and a unique jti. Without replay tracking on the server, a captured proof can be reused within its validity window. Ask your resource server team to confirm where jti values are stored, how long they are kept, and whether nonces issued by the authorization server are enforced where your design requires them.
Exposed admin console and admin API
The Administration REST API and admin console control realms, clients and client policies, so a public route to them weakens every FAPI profile configured in the realm. The production guide calls for exposing them on a different hostname or context path from public frontend URLs. Check the reverse proxy rules, confirm the admin path is reachable only from management networks, and test that public hostnames return no admin responses.
Client secrets and signing keys
FAPI confidential clients authenticate with private key JWT or mutual TLS rather than shared secrets, and the signing keys that protect DPoP and ID tokens must be stored and rotated under your key management process. Inventory each client's authentication method, confirm that client secrets are not used where a stronger method is required, and record who can read or replace realm signing keys.
CIBA approval phishing
In decoupled CIBA, the user approves a request on a separate device, so an attacker who starts an authentication request can try to trigger a prompt that looks legitimate. The binding message and the displayed context must identify the requesting client and the action clearly. Test how the approval screen reads, how often prompts can be sent, and how the user reports an unexpected request.
Unreviewed client policy changes
Client policies decide which FAPI profile, token binding and PAR rules a client must follow, so a silent edit can remove a control without any failed login. Enable admin events, store representations for policy changes, and forward them to your log platform. Ask your team to confirm who may edit client policies and whether a second reviewer approves each change.
How FAPI settings support PCI DSS and DORA evidence
A client policy that requires pushed authorization requests, DPoP-bound tokens and the FAPI profile gives an assessor a configuration they can export, review and test, which is the kind of evidence they ask for when they test strong authentication and access control. Each client's policy can be recorded as a baseline and compared against later exports to show that the controls stayed in place. PCI DSS v4.0.1, published 11 June 2024, is the active version of the standard. The PCI SSC does not enforce compliance, and the payment brands decide who must validate, so confirm with your acquirer or brand which assessment route applies (a Report on Compliance or a Self-Assessment Questionnaire) before you decide which settings to document.
For logging and access control, the evidence is the record of who authenticated, through which client, with which token type, and who changed the Keycloak configuration. Login and admin event settings and the stored admin changes are the starting points, and the exported client policies belong in the same change record. DORA, Regulation (EU) 2022/2554, has applied since 17 January 2025. Article 28(3) requires a register of information on ICT contractual arrangements, and Article 28(8) requires documented, tested exit strategies for ICT services that support critical or important functions. For an identity provider that sits in front of financial APIs, a tested exit plan and the configuration baseline are the artifacts an examiner is likely to request. Confirm with your competent authority which DORA obligations apply to your entity type.
DeployOpen prepares systems, controls and evidence for these assessments. It does not issue Reports on Compliance, Self-Assessment Questionnaire attestations, audit reports or certifications, and those come from a Qualified Security Assessor, your own attestation process or an independent auditor. FAPI conformance is a claim made through the relevant certification process, not something a configuration can declare on its own. Before you describe Keycloak as FAPI conformant in an assessment response, confirm with that certification program which profile and version were tested, which configuration was certified and whether your deployment matches it. Ask for the exported client policies, the test results and the change history as part of the handover.
What does a Keycloak FAPI 2.0 implementation cost and what does it need from us?
What drives the cost of a Keycloak FAPI 2.0 implementation?
The main cost drivers are the number of clients and APIs that must be brought under the profile, the scope of the profile itself, whether CIBA is needed, how your existing API gateways and resource servers validate tokens, and how deep the testing goes. Each client needs its own decisions on redirect handling, token types, sender constraint and scopes, so a large client inventory adds effort faster than a large codebase does. Ask any partner to price each driver separately so you can see which choices move the total. Costs fall when the API inventory is complete at the start and the profile scope is agreed in writing before design begins.
Is a Keycloak FAPI engagement fixed-scope?
Most DeployOpen engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. For a FAPI project, that written scope should name the APIs in scope, the client types, whether DPoP, pushed authorization requests and CIBA are included, the integration points with gateways and resource servers, and the testing evidence you will receive. A quote follows from that written scope. Changes to scope after signing should be handled through a documented change request so both sides see the effect on cost and schedule.
How long does a Keycloak FAPI 2.0 implementation take?
Duration is set by the same factors that drive cost: the number of clients and APIs, how many resource servers must validate sender-constrained tokens, whether CIBA flows need a backchannel to your notification or authentication systems, and how many environments must be promoted through. Dependencies on your change windows, test accounts and architecture review also set the pace. DeployOpen will state a timeline only in the written scope, after the API inventory and architecture decisions are known. Ask for milestones tied to specific deliverables rather than a single end date.
What does our team need to provide for the engagement?
Your team needs to provide a current API inventory with owners, the architecture owners who can make decisions on token design and gateway behavior, test accounts for each user journey, staging environments that resemble production, and agreed change windows for deploying Keycloak configuration. The team should also name the people who approve security decisions and who will operate the result afterward. Missing inventory data is the most common source of rework, so ask for it before the scope is signed. Confirm access requirements with your security team early, since they often control the environments.
Can an internal team implement FAPI 2.0 in Keycloak without a partner?
An internal team can do this if it already runs Keycloak in production, understands OAuth 2.0 and OpenID Connect at the protocol level, and has engineers who can test sender-constrained tokens against each resource server. The harder parts are usually not the Keycloak settings themselves but the coordination across gateways, API teams and security reviewers, plus the test evidence that auditors and banking partners will ask for. A partner adds the most value in the design review, client policy configuration, independent testing and documentation of the decisions. Confirm your team's skills against the written scope before deciding.
How are upgrades and ongoing testing handled after go-live?
Ongoing upgrades, support and continuous testing are available as retainers after the initial engagement ends. This matters for FAPI because Keycloak ships four minor releases a year and the project says breaking changes in a minor release will be opt-in, so each upgrade still needs regression testing of your client policies and token flows. Retainer scope should state which Keycloak versions are covered, how upgrades are tested in staging, who approves the Keycloak Operator update mode, and how retesting follows security findings. Ask for the retainer terms in writing, including what happens when a new release changes profile behavior.
How DeployOpen scopes, builds and supports this Keycloak feature
DeployOpen plans, implements, tests and documents Keycloak FAPI 2.0, DPoP and CIBA inside infrastructure you control, with a written scope agreed before work starts. The work covers client policies, sender-constrained tokens and decoupled authentication, and each part is checked against the behavior your API and security teams need to review.
How we scope
- Written scope lists which FAPI profile applies, which clients and APIs it covers, and which grant types are in use.
- Scope records which resource servers must validate DPoP proofs and how nonces and token binding are handled.
- Scope states whether CIBA is in scope, including the authentication device, notification channel and user binding method.
How we build
- Client policies are configured to enforce the chosen FAPI requirements on each client, with the settings documented per client.
- DPoP and pushed authorization request settings are built and tested against each client and resource server in your environment.
- CIBA flows are built with the backchannel endpoint, notification path and polling or ping delivery mode your architecture requires.
How we hand over
- Deliverables include client policy exports, configuration records and a written description of each enforced requirement.
- Test evidence covers accepted and rejected token requests, DPoP proof failures and CIBA approval paths, retained for your review.
- Runbooks explain how to change a client policy, rotate keys and review a configuration change without breaking live clients.
How we support
- Upgrades are planned against the Keycloak release notes, since FAPI-related client policy behavior can change between versions.
- Ongoing support and continuous testing are available as a retainer, based on the scope agreed in writing.
- Retesting after each configuration or Keycloak version change confirms the enforced requirements still behave as documented.

