Advanced OAuth
FAPI 2.0 Security Profile
On this page
Introduction
FAPI 2.0, on openid.net is a high-security profile of OAuth 2.0, for applications where a stolen token is expensive: open banking, payments, health records. Most of it is restrictions a deployment turns on, so Signari applies it per client. One deployment can have a banking API held to the profile, and an ordinary web application that is not.
An application held to the profile has to be confidential. It has to prove itself with a signed JSON Web Token (JWT, see the glossary) or a certificate. Its tokens have to be bound to a key it holds. Signari refuses to hold an application to the profile until it meets every requirement.
You hold an application to the profile with signari client set-profile.
Holding an application to the profile
To hold the bank-api application to the profile, run:
Shellsignari client set-profile -client-id bank-api -security-profile fapi2
This is refused until the client meets the profile, and the refusal says everything that is missing.
The OpenID Foundation's FAPI 2.0 conformance plans run against Signari in full
every week: private_key_jwt with Demonstrating Proof of Possession (DPoP), the two
mutual Transport Layer Security (TLS) variants, with self-signed client certificates
and with ones a certificate authority (CA) issued, and Message Signing. On 21
November 2026 all four finished with no failed condition. OIDF conformance
testing has the numbers and how to repeat them.
The profile is not certified.
The plans' first run found four defects, all fixed, among them that no
authorization code had been bound to a DPoP key. On 3 November 2026 one failure
remained: a missing code_verifier, the secret behind Proof Key for Code Exchange
(PKCE), was answered invalid_request where the suite wants invalid_grant. RFC
7636 §4.6 answers a failed comparison with invalid_grant, and an absent verifier
fails that comparison, so Signari has answered invalid_grant since November 2026.
What a client has to be
An application held to the profile has to be all of these:
| Requirement | Set with |
|---|---|
| Confidential | signari client create without -public |
Authenticates by private_key_jwt or mutual TLS | client set-keys, client set-tls |
| Access tokens sender-constrained, by DPoP or mutual TLS | client set-dpop, client set-tls |
| Pushed authorization requests required | client set-par |
| PKCE required | on by default |
response_type=code alone | client set-hybrid off |
| Tokens signed with PS256, ES256 or EdDSA | client set-alg, which needs a key of that algorithm |
No http redirect URI but a loopback address | client create -redirect, the Admin API's redirect_uris, or signari apply |
Each of these can be changed afterwards. A change that would leave the profile is refused when it goes through:
client set-parorclient set-alg;- the other settings written through
PATCH /admin/clients/{clientID}orsignari apply.
A change through a command that does not check the profile is not refused.
Instead, a client that no longer meets its profile is refused at the token endpoint
and the pushed authorization endpoint, with unauthorized_client. signari doctor
says which client and why.
What changes for a client held to it
- A client assertion is addressed to the issuer alone, as a string. Elsewhere the token endpoint's URL or a list is accepted too. It is signed with PS256, ES256 or EdDSA.
- A token request must prove a key. It carries a DPoP proof signed with one of the same three. Or it has a client certificate on the connection. Without either, the request is refused. Outside the profile, an application set for certificate binding is given a bearer token during a cutover instead.
- A refresh token does not rotate. The same token goes on working, and the answer carries no new one. If an answer is lost on the way back, the application can use the same token again. It keeps the lifetime it was issued with, and ends with its family as any refresh token does.
What every client already gets
These hold for all applications, and the profile asks nothing more of them:
- An authorization code lasts 60 seconds and is single use.
S256is the only PKCE method.- A pushed request must carry a
redirect_uri, expires in five minutes and gives one code. issis in every authorization response.- A client assertion dated more than 10 seconds ahead, or a DPoP proof more than 30, is refused.
- Codes are bound to the DPoP key.
noneand symmetric algorithms are refused everywhere.- There is no password grant.
What it does not cover
- The resource server. The profile has requirements on it that Signari cannot meet for you. It has to check the DPoP proof or the certificate binding on every call.
- The whole deployment. The discovery document still advertises everything the deployment does, because other applications use it. A deployment that must offer nothing else has to turn it off.
FAPI 2.0 Message Signing
FAPI 2.0 Message Signing is a separate profile on top of this one. It is for when
each side has to be able to prove what the other sent. fapi2-message-signing is
everything above and the following.
To hold bank-api to it, require signed requests, set a response algorithm, and
then set the profile:
Shellsignari client set-signed-requests -client-id bank-apisignari client set-alg -client-id bank-api -response-alg ES256signari client set-profile -client-id bank-api -security-profile fapi2-message-signing
It is refused until the application requires signed requests and has a response algorithm of PS256, ES256 or EdDSA. An application that stops meeting that is refused as above.
| Requests | Signed, at the pushed authorization endpoint alone, with PS256, ES256 or EdDSA. aud is the issuer, and nbf and exp are both required, at most 60 minutes apart |
| Responses | Signed, with response_mode=jwt. Anything else is refused |
| Introspection | A resource server asks for a signed answer with its Accept header. It is signed as the client's tokens are unless it sets otherwise, because RFC 9701's default of RS256 is one this profile rules out |
| ID tokens | Signed already |
Not here is response_modes, the client metadata that lists the modes a client
may use. It is optional, and a client held to this profile is limited to signed
ones anyway.
The review goes through the specification requirement by requirement. It covers the Security Profile.
The OpenID Foundation's Message Signing plan, with signed requests and
JWT-Secured Authorization Response Mode (JARM), ran 71 modules. It had
the same one failure, the missing code_verifier, since answered as above.