Request for suggestions for tests for FAPI2-Baseline RP/client testing
@jogu is already working on this.
Since Jul 11, 2026.
- Dominant language
- HTML
- Stars
- 3
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Originally submitted by josephheenan (Joseph Heenan) on 2022-04-05
The set of certification tests we’ve identified for FAPI2-Baseline RP testing seems very short. Partly this feels okay as part of the ethos of FAPI2 was to simplify things for clients, but I’m worried the certification team might’ve missed something.
The tests we currently have or plan to do are:
- General happy flow tests (i.e. all requests from client are fully verified, and AS responds with good responses)
- Variant of happy flow that returns id_token that has the aud claim as a single entry array (this is a test from the FAPI1-Adv tests, and though I can’t recall the history it still seems applicable)
- Negative test that missed out
issfrom the authorization endpoint response and expects the client to abort / NOT call the token endpoint - Negative test as per '3' but returning an incorrect value for
iss - Probably something that requires the client to demonstrate it can correctly handle refresh token rotation
Here’s a list of the other things we tested in FAPI1-Adv but don’t seem applicable to FAPI2 and hence we don’t plan to test (mentioned in case anyone can see a reason why these are applicable)
- Tests for invalid s_hash (not mentioned in FAPI2)
- Tests for encrypted id_tokens (id tokens are only returned in backchannel in FAPI2 so no reason to encrypt)
- Tests that return no/extra scopes in the token endpoint response (there’s no relevant clauses in FAPI2)
- Tests that returned bad nonces/states (there’s no requirement for the client to use state nor to use nonce in FAPI2)
- Tests that returned bad id_tokens (invalid signatures/expired/missing required fields/etc) and expected the client to stop (there’s no requirement for the client to validate the id_token in FAPI2 as it’s returned in the backchannel)
Bitbucket status: open
Bitbucket origin: issue 490
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.