scaledockhq/scaledock-skills/fapi
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
FAPI 2.0: high-security OAuth profile for financial-grade APIs. Use when building or reviewing an authorization server, client or resource server that must meet the OpenID FAPI 2.0 Security Profile or FAPI 2.0 Message Signing: PAR, PKCE S256, sender-constrained tokens with DPoP or mTLS, private_key_jwt or mTLS client authentication, PS256, ES256 or Ed25519, the RFC 9207 iss parameter, short code lifetimes and strict redirect URIs. Also use it to migrate from FAPI 1.0 Baseline or Advanced, to ap…
Install
npx vskill@latest install scaledockhq/scaledock-skills/fapiSKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/fapi.
FAPI
FAPI is the OpenID Foundation's family of high-security OAuth 2.0 profiles. FAPI 2.0 is the current family and FAPI 1.0 is the legacy family. With this skill an agent configures or reviews an authorization server, a client or a resource server so that it meets the FAPI 2.0 Security Profile, adds FAPI 2.0 Message Signing when non-repudiation is needed, and prepares for the OpenID conformance suite.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: authorization server (AS), client, or resource server (RS). Many reviews cover all three.
- Target version: FAPI 2.0 (current, the default). FAPI 1.0 is legacy: read it and migrate from it, and build it only when a named ecosystem still mandates it; the FAPI WG strongly recommends FAPI 2.0 for new ecosystems (FAPI WG specifications page). No preview is listed. See `references/versions.md`.
- Profile: FAPI 2.0 Security Profile alone, or with FAPI 2.0 Message Signing.
- Options: sender-constraining with DPoP or mTLS; client authentication with
private_key_jwtor mTLS; whether OpenID Connect is used; any ecosystem profile on top (it may add rules but shall not remove mandatory behaviour, FAPI 2.0 SP §5.1.2). - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check the FAPI WG specifications page for a newer revision, and update the pins.
Invariants
These come from the FAPI 2.0 Security Profile (SP) unless another document is named.
- Confidential clients only (SP §5.1.1, §5.3.2.1). Public clients are out of scope. The AS rejects the resource owner password credentials grant.
- Authorization code flow through PAR, with PKCE S256 (SP §5.3.2.2).
response_type=codeonly. The AS rejects authorization requests that were not pushed, and pushed requests without client authentication.redirect_uriis required in the PAR request. - Sender-constrained access tokens only (SP §5.3.2.1, §5.3.3.1, §5.3.4). Use mTLS (RFC 8705) or DPoP (RFC 9449). Every party verifies the binding.
- Client authentication with mTLS or `private_key_jwt` (SP §5.3.2.1). The AS accepts only its issuer identifier, as a string, in the
audof a client assertion. - Mix-up defence with `iss` (SP §5.3.2.2, §5.3.3.2). The AS returns
issin the authorization response (RFC 9207), and the client checks it. - Short lifetimes and single use (SP §5.3.2.1, §5.3.2.2). Authorization codes live at most 60 seconds and are rejected on reuse. A PAR
expires_inis under 600 seconds. - Strict redirects (SP §5.3.2.1, §5.3.2.2). No
httpredirect URIs except native-app loopback (RFC 8252 §7.3). No open redirectors. Redirect with 303, never 307. - Algorithms and keys (SP §5.4.1). JWTs follow RFC 8725 and use PS256, ES256 or EdDSA with Ed25519, never
none. RSA keys are at least 2048 bits and EC keys at least 224 bits. Machine credentials have at least 128 bits of entropy. - Transport (SP §5.2). TLS 1.2 or later per BCP 195, with certificate checks per RFC 9525. Browser-facing endpoints prevent TLS stripping. The authorization endpoint does not support CORS.
- Tokens in headers only (SP §5.3.3.1, §5.3.4). Clients send access tokens in the
Authorizationheader. Resource servers reject tokens in the query string. - Message Signing, when chosen, signs every leg it claims (Message Signing §5.3 to §5.6). Signed request objects at PAR, JARM responses, signed introspection responses and verified ID tokens are separate conformance options, and each one is implemented in full.
Workflow
- Pick the version, profile and options. Use FAPI 2.0 unless a named ecosystem mandates FAPI 1.0. Record the profile, sender-constraining method, client authentication method and any ecosystem profile from the inputs.
-> `references/versions.md` ✓ The target version and every option are named, and nothing in the ecosystem profile removes a FAPI 2.0 requirement.
- Configure the authorization server. Metadata, PAR, PKCE, the authorization and token endpoints, lifetimes, clock tolerance and refresh tokens.
-> `references/authorization-server.md` ✓ Every AS row in the checklist holds, and a request without PAR is rejected.
- Build or review the client. Discovery, PAR, PKCE, the
isscheck, DPoP or mTLS, and token use.
-> `references/client.md` ✓ The client sends only client_id and request_uri to the authorization endpoint and rejects a response with the wrong iss.
- Protect the resource server. Header-only tokens, validation and sender-constraint checks.
-> `references/resource-server.md` ✓ A bearer-only token, a query-string token and a token presented with the wrong key are all rejected.
- Check cryptography and key distribution. Algorithms, key sizes,
jwks_uriandkidhandling.
-> `references/cryptography.md` ✓ Only PS256, ES256 or Ed25519 keys are published or accepted, and none is refused.
- Add Message Signing if required. Signed request objects, JARM, signed introspection and ID token verification.
-> `references/message-signing.md` ✓ Each chosen option is implemented on both sides.
- Upgrade from FAPI 1.0 (only when the deployment is on FAPI 1.0). Follow the 1.0 to 2.0 upgrade steps, which use the migration checklist in
fapi-1.md.
-> `references/versions.md`, `references/fapi-1.md` ✓ Every FAPI 1.0 to 2.0 difference is resolved for the deployment, and the FAPI 2.0 test plans pass.
- Apply drafts only when asked. FAPI-CIBA for decoupled flows and Grant Management for grant lifecycle APIs.
-> `references/ciba-and-grant-management.md` ✓ Draft features are labelled with the pinned revision.
- Review against the attacker model. Walk the attackers and the security considerations.
-> `references/attacker-model.md` ✓ Each attacker class has a named mitigation.
- Prepare certification. Configure the conformance suite test plans.
-> `references/certification.md` ✓ The right test plan per option is identified, with two clients and the suite's redirect URIs.
Verify before done
- [ ] AS metadata advertises PAR, PKCE S256, only FAPI client authentication methods and only FAPI signing algorithms.
- [ ] An authorization request without PAR, a PAR request without client authentication and a request without PKCE S256 are each rejected.
- [ ] The authorization response carries
iss, and the client rejects a mismatchediss. - [ ] Authorization codes expire within 60 seconds and fail on second use;
request_uriexpires_inis under 600. - [ ] Access tokens are DPoP-bound or certificate-bound, and the RS rejects them without a matching proof.
- [ ] No endpoint accepts
alg: none, RS256 or keys below the minimum sizes. - [ ] If Message Signing is in scope, each chosen option passes its own test plan.
- [ ] The conformance suite plan for each configured variant finishes with no failures.
Reference index
- `references/versions.md`: the FAPI 2.0 and FAPI 1.0 lines with their status, which one to use, what changed, the 1.0 to 2.0 upgrade steps, and why no preview is listed.
- `references/authorization-server.md`: AS requirements, metadata, PAR, PKCE, lifetimes, clock skew and refresh tokens.
- `references/client.md`: client requirements and request examples for PAR,
private_key_jwtand DPoP. - `references/resource-server.md`: RS validation steps and a framework-neutral TypeScript check.
- `references/cryptography.md`: algorithms, key sizes, JWKS rules, duplicate
kidhandling and the Ed25519 identifier. - `references/message-signing.md`: FAPI 2.0 Message Signing and JARM processing rules.
- `references/fapi-1.md`: FAPI 1.0 Baseline and Advanced, and the differences from FAPI 2.0.
- `references/ciba-and-grant-management.md`: the FAPI-CIBA and Grant Management Implementer's Drafts.
- `references/attacker-model.md`: security goals, attacker classes and security considerations.
- `references/certification.md`: OpenID conformance suite setup for FAPI servers and clients.
Related skills
oauthfor the underlying OAuth 2.0 framework, PAR, PKCE, DPoP and mTLS:npx skills add ScaleDockHQ/scaledock-skills --skill oauth.jwtfor JWT, JWS and JWK processing and RFC 8725:npx skills add ScaleDockHQ/scaledock-skills --skill jwt.openid-connectfor ID tokens and discovery when FAPI is used with OpenID Connect:npx skills add ScaleDockHQ/scaledock-skills --skill openid-connect.openidfor an overview of OpenID Foundation specifications:npx skills add ScaleDockHQ/scaledock-skills --skill openid.openid4vcbecause HAIP builds its issuance profile on FAPI 2.0:npx skills add ScaleDockHQ/scaledock-skills --skill openid4vc.shared-signalsfor session and credential revocation events between FAPI parties:npx skills add ScaleDockHQ/scaledock-skills --skill shared-signals.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fapi/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/fapi)