The purpose of a security profile
The printer's Pay by bank option works with Lakeside Bank because the printer built exactly what Lakeside supports. This lesson follows the printer as it tries to work with every bank its customers use, and shows what a security profile such as FAPI does about the choices OAuthA framework that lets a person give an application limited access to their resources at another service, using tokens instead of sharing their password. OAuth is about access; OpenID Connect adds sign-in. leaves open: making them once for everyone, and starting from what attackers are assumed to be able to do.
One framework, many choices
The printer's Pay by bank option has appeared throughout Advanced OAuth. By the end of Processing and validating a request, paying for Ava's 42.50 EUR photo book worked like this: the printer's client photo-printer-pay pushed a payment_initiation request to Lakeside Bank's PARAn OAuth extension, RFC 9126, in which the client sends its authorization request straight to the authorization server and gets back a short-lived request_uri. The browser carries only that reference, so the parameters cannot be read or changed on the way. endpoint, authenticated with a signed client assertion, and received a bearer tokenA token that works for whoever presents it: the API checks that the token is genuine and current, not who is holding it. That is why bearer tokens must be kept from being copied. that allowed exactly one payment. Ava approved it at the bank, and the printer never saw her account details.
Every mechanism in that flow was a choice made for one integration: pushing the request, authenticating with a signed assertion, accepting a bearer tokenA piece of data issued by a trusted service that a client presents as a credential, for example to call an API or to report a sign-in. Some tokens carry readable claims; others are random strings that only the issuer can interpret.. The printer read Lakeside's documentation and built what Lakeside supports. That works for one bank. The printer wants Pay by bank to work with every bank its customers use.
OAuth 2.0 calls itself a framework, and the OAuth 2.0 lessons, from The problem OAuth solves onward, have met its choices again and again. A client can authenticate with a secret, a signed assertion, or a certificateA signed statement that a public key belongs to a name, such as a website's hostname, for stated purposes and a limited period. A certificate authority signs it, so software that trusts the authority can connect the key to the name.. Tokens can be bearer tokens or bound with DPoPAn OAuth extension, RFC 9449, that binds tokens to a key pair the client holds. The client signs a fresh proof for each request, so a stolen token is useless without the private key. or mutual TLSTransport Layer Security, the protection behind HTTPS. It encrypts traffic between two connected systems, detects changes on the way, and uses certificates so the client can confirm which server it reached.. A server can return iss in its authorizationDeciding whether a requested action is permitted, such as whether a signed-in account may delete a particular photo. Authentication says which account is asking; authorization decides what it can do. responses or rely on distinct redirect URIs. Refresh tokens can be rotated or not. Even small details varied: Secrets and signed assertions described how servers once accepted their token endpointThe authorization server address where clients exchange an authorization code, refresh token, or other grant for tokens, in a direct request rather than through a browser redirect.'s address, their issuer identifierThe party that creates and signs a token, assertion, or certificate, named in a token's iss claim. A recipient must check that the issuer is exactly the one it expected and trusts., or a list of values in a client assertion's aud claim, until researchers showed how that flexibility could be abused.
Pay by bank is rarely a one-bank feature. In many countries, regulation or industry agreements require banks to let customers share account information or start payments through authorized third-party applications, using APIs. These open banking ecosystems involve many banks, each running its own authorization serverIn OAuth, the service that handles a person's sign-in and approval and decides which tokens to issue to a client. It may belong to the same company as the API, but its job is separate. and APIs, and many third parties, each connecting to many banks. A central directory often records which participants are authorized and which keys or certificates they use.
If every bank in such an ecosystem made its own choices, every third party would maintain a slightly different integration for each bank, and test each one separately. Worse, customers' money would be only as safe as the weakest combination any bank chose.
Lakeside's own choices
- Client authentication
- signed assertion
- Authorization request
- pushed
- Access token
- bearer
Built from Lakeside's documentation
Its own choices
- Client authentication
- client secret
- Authorization request
- in the browser address
- Access token
- bearer
A second integration, and a weaker one
Every bank under FAPI 2.0
- Client authentication
- signed assertion or mutual TLS
- Authorization request
- pushed
- Access token
- bound with DPoP or mutual TLS
One integration for every bank
Without a profile, customers' money is only as safe as the weakest combination any bank chose.
What a security profile does
A security profile is a specification that takes a framework and its extensions and makes the choices once, for everyone who adopts it. It says which mechanisms are required, which are forbidden, which algorithms and values are allowed, and what limits apply to lifetimes and key sizes. Where the underlying specifications say a server may do something, a profile often says it shall or shall not.
That serves two purposes at once. A client written to the profile works with every server that follows it, which is interoperability. And the weak or risky options are gone, leaving fewer combinations to get wrong, which is security. The assertion audience is a small example. A profile can require the issuer identifier, as a single string, and require servers to accept nothing else.
FAPI, developed by the OpenID Foundation's FAPI working group, is an OAuth security profile that open banking, open data, and identity initiatives in many countries have adopted. It began as the Financial-grade API Security Profile, finalized in 2021 in two parts, a baseline and an advanced version. Its successor, the FAPI 2.0 Security Profile, was published as a final specification in February 2025. It is simpler to implement than its predecessor and describes itself as a general-purpose, high-security profile, meant for any API whose data or actions need that level of protection, not only banking. A companion specification, FAPI 2.0 Message Signing, final since September 2025, adds signed requests and responses for ecosystems that need to prove later who sent a particular message. It signs authorization requests, authorization responses, introspectionA way for an API to ask the authorization server what a token means: whether it is still active and what access it carries. APIs need it when a token is a random string that only the authorization server can interpret. responses and ID tokens, so either side can later show a third party exactly what the other sent. It does not sign the calls to the API itself; an ecosystem that wants those signed too sets that out in its own standard.
Ecosystems usually build their own rules on top. An open banking ecosystem might allow only one of FAPI's options, require certificates from its directory's CA, and define its own payment API. Narrowing is allowed. Removing or overriding one of FAPI 2.0's mandatory behaviors is not, because the profile's security argument depends on all of them together.
Starting from an attacker model
Many security documents grow as lists: an attack is discovered, a defense is added. FAPI 2.0 starts from the other end. A separate document, the FAPI 2.0 Attacker Model, describes what attackers are assumed to be able to do and which goals must hold anyway. It names six attackers. The profile's mechanisms were then chosen, and analyzed formally, to meet those goals against those attackers.
| Attacker | Assumed to be able to |
|---|---|
| Web attacker | Run their own websites and clients, take part in flows with their own accounts, and send people links. They cannot read other people's traffic or break cryptography. |
| Web attacker acting as an authorization server | Do all of that and also run an authorization server that clients in the ecosystem trust, like Pixel Vault in Authorization server mix-up. |
| Network attacker | Intercept, block, and change traffic, as a rogue Wi-Fi access point could, without breaking cryptography. |
| Reader of authorization requests | Read authorization requests as they pass through the browser, for example from browser history, an app registered for the same address, or software that inspects traffic. |
| Attacker at the token endpoint | Make a client send its token requests to a token endpoint the attacker controls, and read or change them there. The model lists this attacker for information only: a FAPI 2.0 client takes its token endpoint from the authorization server's metadata, so it does not apply. |
| Reader of resource requests | Read requests to an API after the API has processed them, for example from the logs of a proxy that inspects traffic. |
The model deliberately leaves out an attacker who can read authorization responses: with today's browsers, it notes, such an attacker could undermine most security protocols. Attackers may combine these abilities and work together. Against all of them, three goals must hold. No attacker can obtain and use an access token for anyone's resources but their own. Where OpenID Connect is used for sign-in, no attacker can sign in to a client as someone else. And no attacker can trick someone such as Ava into using the attacker's resources or identity instead of her own, the kind of attack Request correlation and CSRF walked through, where Ava's printer account ended up linked to the attacker's photo account.
The model is just as clear about what it leaves out. It assumes TLS itself is not broken, that the people using the system have browsers and devices that are not compromised, and that private keys have not leaked through human error. It does not cover breached servers, how people sign in to their bank, or bugs in an implementation. Those risks are real, and a deployment has to address them separately. A profile can only promise what its model covers.
Within that model, what FAPI 2.0 requires is mostly familiar. Its defenses are mechanisms from the lessons before it, most of them from the Advanced OAuth groups that begin with Pushing an authorization request, each one made mandatory and fitted together with the others.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Turn on the FAPI 2.0 profile and let it make the choicesSee the choices OAuth leaves open, set a payment client to the FAPI 2.0 profile, fix each setting it names until it saves, and map every FAPI attacker to a refusal you can trigger.