Skip to content
Skills Library
Security · Review & audit

oidf-preflight

/oidf-preflight

Pre-flight code checklist to run against an OpenID4VCI issuer / OAuth authorization server or an OpenID4VP verifier codebase BEFORE the first OpenID Foundation conformance suite run (HAIP and FAPI 2.0 plans). Inspects metadata, PAR/PKCE/DPoP handling, token and credential endpoint errors, TLS configuration, refresh-token binding, time-claim rounding, verifier request objects, encryption keys and status-list fetching, and writes a pass/risk/unknown report with file references. Use when someone is about to run the conformance suite, asks "are we ready for OIDF / HAIP / FAPI2 tests", or wants to

Licence
Apache-2.0
Last repository change
29.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Pre-flight code checklist to run against an OpenID4VCI issuer / OAuth authorization server or an OpenID4VP verifier codebase BEFORE the first OpenID Foundation conformance suite run (HAIP and FAPI 2.0 plans). Inspects metadata, PAR/PKCE/DPoP handling, token and credential endpoint errors, TLS configuration, refresh-token binding, time-claim rounding, verifier request objects, encryption keys and status-list fetching, and writes a pass/risk/unknown report with file references. Use when someone is about to run the conformance suite, asks "are we ready for OIDF / HAIP / FAPI2 tests", or wants to

Triggers from the description

are we ready for OIDF / HAIP / FAPI2 tests
Original author description

Pre-flight code checklist to run against an OpenID4VCI issuer / OAuth authorization server or an OpenID4VP verifier codebase BEFORE the first OpenID Foundation conformance suite run (HAIP and FAPI 2.0 plans). Inspects metadata, PAR/PKCE/DPoP handling, token and credential endpoint errors, TLS configuration, refresh-token binding, time-claim rounding, verifier request objects, encryption keys and status-list fetching, and writes a pass/risk/unknown report with file references. Use when someone is about to run the conformance suite, asks "are we ready for OIDF / HAIP / FAPI2 tests", or wants to

How it works

  1. How to run
  2. A. Issuer and authorization server metadata
  3. B. PAR, authorization, PKCE
  4. C. DPoP and client attestation
  5. D. Token endpoint
  6. E. Credential and nonce endpoints
  7. F. Transport
  8. G. Verifier (OpenID4VP)
  9. Report template
Original SKILL.md headings · 134 lines, 1,733 words
SKILL.md preview
---
name: oidf-preflight
description: Pre-flight code checklist to run against an OpenID4VCI issuer / OAuth authorization server or an OpenID4VP verifier codebase BEFORE the first OpenID Foundation conformance suite run (HAIP and FAPI 2.0 plans). Inspects metadata, PAR/PKCE/DPoP handling, token and credential endpoint errors, TLS configuration, refresh-token binding, time-claim rounding, verifier request objects, encryption keys and status-list fetching, and writes a pass/risk/unknown report with file references. Use when someone is about to run the conformance suite, asks "are we ready for OIDF / HAIP / FAPI2 tests", or wants to predict conformance failures from code.
---

# OIDF pre-flight checklist

Goal: find the findings the conformance suite will report, from the code, before spending hours in the suite. Each
item lists what to look for, how to search, and what "good" looks like. Details and spec citations for every item are in
[`../oidf-conformance/references/common-failures.md`](../oidf-conformance/references/common-failures.md).

## How to run

1. Identify the components in scope: credential issuer, authorization server (PAR, token), credential/nonce/notification
   endpoints, reverse proxy/TLS config, verifier (request object, `response_uri`, status checking). Note the
   language/framework and where routes are defined.
2. For each item below, search (Grep/Glob for the patterns, adapted to the codebase's naming), read the relevant code,
   and classify: **OK** (evidence it's right), **RISK** (evidence it's wrong or missing — say what the suite will
   report), **UNKNOWN** (can't tell from code; needs a live check), **N/A** (component not in scope).
3. If a running test environment is available, confirm the live items (metadata, TLS, headers) with `curl`/`openssl`.
4. Don't change code in this skill. Produce the report (template at the end) and hand RISK items to the `oidf-fixer`
   agent or the team.

Search tip: patterns are regexes for Grep; widen them with the project's own identifiers once you find the module.

## A. Issuer and authorization server metadata

| # | Check | Look for | Good |
|---|---|---|---|
| A1 | Client attestation alg lists | `attest_jwt_client_auth`, `client_attestation_signing_alg_values_supported`, `client_attestation_pop_signing_alg_values_supported` | Both arrays present, non-empty, wherever `attest_jwt_client_auth` is advertised |
| A2 | AS metadata basics | `pushed_authorization_request_endpoint`, `require_pushed_authorization_requests`, `code_challenge_methods_supported`, `dpop_signing_alg_values_supported`, `authorization_response_iss_parameter_supported` | PAR required, `["S256"]` only, `["ES256"]` (or what you support), iss parameter `true` |
| A3 | Display shape | `display` near `credential_configurations_supported`; `credential_metadata` | `display` and `claims` inside `credential_metadata` (VCI §12.2.4), not on the configuration |
| A4 | Locale vs lang | `"lang"` / `lang:` in issuer-metadata code | `locale` in OpenID4VCI metadata; `lang` only in SD-JWT VC type metadata; tags valid BCP 47, canonical case, one object per language after [normalization](../oidf-conformance/references/common-failures.md#cf-locale-normalization) |
| A5 | Format identifiers | `vc\+sd-jwt` | `dc+sd-jwt` everywhere |
| A6 | Nonce endpoint | `nonce_endpoint` | Advertised and implemented (HAIP-4.1-5) |
| A7 | Extensions in metadata | non-standard members in issuer/AS metadata builders | Each extension listed with its source spec, ready for the allow-list; an extension inside `credential_metadata` will also trigger the [schema cascade](../oidf-conformance/references/common-failures.md#cf-schema-cascade) WARNING — note it as an expected suite limitation |
| A8 | Signed metadata | `application/jwt`, `openidvci-issuer-metadata+jwt` | `Accept: application/jwt` returns a signed JWT with the same content |
| A9 | Scope per configuration | `scope` in configurations | Each configuration the suite uses has a `scope` valid per RFC 6749 §3.3 |

## B. PAR, authorization, PKCE

| # | Check | Look for | Good |
|---|---|---|---|
| B1 | PAR method | PAR route registration (`/par`, `pushed`) | Non-POST → `405` (not a framework 404) |
| B2 | `request_uri` in PAR body | PAR parameter parsing | Rejected with `invalid_request` |
| B3 | Duplicate parameters | form parsing that keeps the last value | Duplicates rejected |
| B4 | `response_type` | PAR validation | Only `code`; others → `unsupported_response_type`/`invalid_request` |
| B5 | PKCE | `code_challenge_method`, `plain`, `S256` | Required; `plain` → `invalid_request`; verifier syntax 43–128 chars |
| B6 | `client_id` at `/authorize` | authorization handler | Must match the PAR client (`request_uri` bound to client) |
| B7 | `request_uri` lifetime and reuse | `expires_in`, request store | Reusable until code issuance, single-use after; expiry enforced |
| B8 | Front channel params | `/authorize` handler | Works with only `client_id` + `request_uri` |
| B9 | Error rendering | `/authorize` error paths | Browser-facing errors render an HTML page (screenshot-friendly) or redirect with `error`, `state`, `iss` |
| B10 | User cancel | consent/login cancel handler | Redirect with `error=access_denied` |
| B11 | Redirect URIs | allow-list config / env parsing | Exact match incl. query; values with `&` survive config loading |

## C. DPoP and client attestation

| # | Check | Look for | Good |
|---|---|---|---|
| C1 | DPoP at PAR | `dpop_jkt`, DPoP verification in PAR handler | Proof verified; thumbprint compared with `dpop_jkt` → `invalid_dpop_proof`; stored with the code |
| C2 | Code ↔ key | token handler | Different key → `invalid_grant`; missing DPoP → error |
| C3 | `htu` comparison | `htu` equality | Normalized (lower-case scheme/host, default port dropped), query/fragment ignored |
| C4 | DPoP proof checks | `jti`, `iat`, `ath`, `typ`, `alg`, `jwk` | All checked; `iat` window tolerates ±10 s; replayed `jti` rejected; private `jwk` rejected; `none`/unsupported alg rejected |
| C5 | Scheme case | `Authorization` parsing | `DPoP`/`dpop` both accepted; `Bearer` with a DPoP-bound token rejected |
| C6 | 401 challenge | credential endpoint error path | `401` + `WWW-Authenticate: DPoP error="…", algs="ES256"` |
| C7 | Client attestation validation | WIA/PoP verification | signature, `exp`, `sub`==client_id, PoP `aud`, PoP key == `cnf.jwk`, `jti` replay; errors `invalid_client`/`use_fresh_attestation` |
| C8 | Ecosystem-only claims | required claims beyond ATCA/VCI (status in WIA, key-storage claims in key attestations) | Policy switch, strict by default, relaxable only in the test environment |

## D. Token endpoint

| # | Check | Look for | Good |
|---|---|---|---|
| D1 | `Cache-Control: no-store` | token route response headers | On success **and** every error |
| D2 | Missing `code_verifier` | token handler | `invalid_grant`, code burnt |
| D3 | Code reuse | code store | Second use `invalid_grant` and tokens from the first use revoked |
| D4 | Code lifetime | code TTL | ≤ 60 s |
| D5 | `client_id` mismatch | body `client_id` vs authenticated client | `invalid_client` |
| D6 | Refresh binding | refresh token storage | Bound to the client instance key (attestation `cnf`), not to the DPoP key; different instance key rejected; no client auth rejected |
| D7 | Refresh timing / scope | refresh grant handler | Usable immediately after issuance; no-scope refresh = original scope, usable for the same credentials; if refresh only for a special scope, the suite will SKIP |
| D8 | Error codes | literal `error:` strings | Only RFC 6749 §5.2 / RFC 9449 / ATCA codes; extra reason in `error_description` |

## E. Credential and nonce endpoints

| # | Check | Look for | Good |
|---|---|---|---|
| E1 | Access token reuse | "used"/"consumed" flags on access tokens | Several credential requests per token within its lifetime (or a recorded decision) |
| E2 | Error codes | credential error responses | `invalid_proof`, `invalid_nonce`, `unknown_credential_configuration`, `unknown_credential_identifier`, `invalid_encryption_parameters`, `credential_request_denied` (VCI §8.3.1.2) |
| E3 | Response members | credential response builder | Only `credentials`, `transaction_id`, `notification_id`, `interval` |
| E4 | Nonce atomicity | `c_nonce` consume | Atomic compare-and-delete before any await; not restored on failure |
| E5 | Access token in query | token extraction | Query/form tokens rejected at the credential endpoint |
| E6 | Unknown parameters | strict request schemas | Unknown parameters ignored (the suite adds random ones) |
| E7 | Batch | `proofs`, batch size | One credential per proof, each bound to its key, distinct keys enforced |
| E8 | Time claims | `iat`, `exp`, `nbf`, mdoc `validityInfo` | Rounded (hour/day) or randomized, consistently for exp; not before the signer's `notBefore` |
| E9 | Status indices | status list allocation | Random (no arithmetic progression across a batch), unique `uri`+`idx` per credential, lists shared across holders |
| E10 | Notification | issuance state | Issuance doesn't depend on the notification call |

## F. Transport

| # | Check | Look for | Good |
|---|---|---|---|
| F1 | TLS versions | nginx/Caddy/ingress/LB config (`ssl_protocols`, `minVersion`) | TLS 1.2 + 1.3 only |
| F2 | TLS 1.2 ciphers | `ssl_ciphers`, cipher lists | Only ECDHE + AES-GCM (4 suites); live: `openssl s_client -tls1_2 -cipher ECDHE-ECDSA-AES128-SHA` fails |
| F3 | `Date` header | resource responses | Present |
| F4 | Deploy freeze | CI/CD | A way to pause deploys during a run |

## G. Verifier (OpenID4VP)

| # | Check | Look for | Good |
|---|---|---|---|
| G1 | Request object header/claims | request object builder | `typ: oauth-authz-req+jwt`; payload `aud` (`https://self-issued.me/v2`), `iat`, `exp`, `client_id`, `response_uri`, `response_mode=direct_post.jwt`, `nonce` (≥ 128 bits), `state`, `dcql_query`, `client_metadata`; `x5c` without root |
| G2 | No invented parameters | request builder | No `purpose` or other non-VP members; purpose comes from `verifier_info`/registration data |
| G3 | `x509_hash` client id | client id computation | `x509_hash:` + base64url(SHA-256(leaf DER)) |
| G4 | Request URI serving | `request_uri` handler | `application/oauth-authz-req+jwt`; fetchable twice; optional POST with `wallet_nonce` |
| G5 | Encryption key | `client_metadata.jwks` generation | Fresh ephemeral ECDH-ES key per request, with `kid` (`VP1FinalCheckEncryptionKeyNotReused` FAILURE under HAIP otherwise); `encrypted_response_enc_values_supported` |
| G6 | `vp_formats_supported` | client metadata | Only formats the DCQL query uses |
| G7 | DCQL | policy definitions | One credential per request for the test policy; no non-disclosable claims requested; `vct_values` exact |
| G8 | Response endpoint | `response_uri` handler | Invalid presentation → `400` (no screenshot needed); success → `200 {"redirect_uri": …}` only; transaction not consumed by a failed holder binding |
| G9 | KB-JWT checks | key binding verification | signature vs `cnf`, `nonce`, `aud` (with prefix), `iat` window (minutes), `sd_hash` |
| G10 | Status | status list handling | Fetch at verification time (SSRF-safe), accept list signed by the credential signer when the trust model allows, `Accept: application/statuslist+jwt`; credential without status accepted |
| G11 | Holder key | `cnf.jwk` parsing | Minimal JWK (`kty`, `crv`, `x`, `y`) accepted |
| G12 | Wallet error | `response_uri` handler | Accepts `error`/`state` from a wallet that declines |

## Report template

```markdown
# OIDF pre-flight report — <component> (<commit>)

Scope: <issuer | AS | verifier>, plan(s): <...>, date: <...>

| # | Item | Status | Evidence (file:line) | Expected suite finding if not fixed | Suggested fix |
|---|---|---|---|---|---|
| A1 | Client attestation alg lists | RISK | src/metadata.ts:42 | CheckDiscEndpointClientAttestationSigningAlgValuesSupported FAILURE (metadata, discovery) | add both arrays |

Summary: <n> OK · <n> RISK · <n> UNKNOWN · <n> N/A
Live checks still needed: <list>
Test-only relaxations required for the suite: <list, each with switch name and default>
```

Versions

The database has no other skills named oidf-preflight.

Database snapshot: 13.11.2026 · package version c051bef1af95 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100oidf-conformance
    Run the OpenID Foundation conformance suite against an OpenID4VCI 1.0 issuer (with its OAuth authorization server) or an OpenID4VP 1.0 verifier under HAIP and FAPI 2.0 — choose the plan and variants, prepare the suite configuration and test PKI, run modules in a sensible order,…
  • 90secure-oauth-oidc
    Design, implement, audit, test, troubleshoot, or migrate secure OAuth 2.0 and OpenID Connect (OIDC) systems using RFC 9700 / BCP 240. Use for authorization servers and OpenID Providers, OAuth clients and OIDC relying parties, resource servers, native apps, browser-based apps,…
  • 100orchardcore-openid
    Skill for configuring and managing OpenID Connect in Orchard Core. Covers the authorization server, token validation, client integration and management features, the OpenIdServerSettings, OpenIdApplication, OpenIdScope, OpenIdValidationSettings and OpenIdClientSettings recipe…
  • 90oauth-flows
    Implement OAuth 2.0 and OpenID Connect flows that bind the request end to end with PKCE, state, and exact redirect allowlists. Use when adding "sign in with" a provider, integrating a third-party API on a user's behalf, or reviewing an OAuth client.
  • 85OAuth2
    Expert guidance for OAuth 2.0 protocol including authorization flows, grant types, token management, OpenID Connect, security best practices, and implementation patterns. Use this when implementing authentication/authorization, working with OAuth providers, securing APIs, or…
  • 100oauth-implementation
    OAuth 2.0 and OpenID Connect authentication with secure flows. Use for third-party integrations, SSO systems, token-based API access, or encountering authorization code flow, PKCE, token refresh, scope management errors.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.