T13.10: DPoP for the Okta Management API calls, auto-detected (D24)

This commit is contained in:
2026-10-16 17:10:19 -07:00
parent 83e77ec622
commit 1a3468effd
7 changed files with 490 additions and 40 deletions

View File

@@ -405,3 +405,20 @@ with a brace, but Python's strict JSON reader refused them (PowerShell accepted
The loader now accepts control characters such as line breaks inside a string, curly quote marks and
a trailing comma, removes spaces inside the key's number fields, and a real syntax error reports the
line and column (position and rule only, never key text).
## T13.10: D24 DPoP for the Okta Management API
**Item:** D24 (`docs/waves/decisions-2026-10-16.md`). Extends T13.9.
**Done when:**
- [x] auto mode: a plain Bearer token is tried first; `invalid_dpop_proof` makes the sync retry with DPoP (`tests/okta_sync_dpop_check.py`)
- [x] each proof verifies: header (`dpop+jwt`, ES256, public jwk only), signature, `htm`, `htu` without query, current `iat`, one-time `jti`, `ath` on API calls, same key for token and API calls
- [x] nonce challenges at the token endpoint and at the API are answered once, and the retries are bounded
- [x] paging: a new proof for every page
- [x] mode `on` and mode `off`; a DPoP-bound token with mode off is refused; each run makes a new key
- [x] no secret in any message or the startup line; the SSWS path is unchanged
- [x] mutation checks: query kept in `htu`, `ath` omitted, `jti` reused, nonce not retried (token and API), private key in the proof header, and auto detection removed each make a test fail
- [x] `.env.example`, `docker-compose.yml`, `DEPLOYMENT.md` updated
Result 2026-10-16: sandbox, strict fake Okta. Not yet run against the real tenant.