T13.9 follow-up 3: read pretty-printed and hand-copied JWKs, report the line and column of a syntax error (D23)

This commit is contained in:
2026-10-16 16:56:11 -07:00
parent c75450a000
commit 83e77ec622
3 changed files with 86 additions and 15 deletions

View File

@@ -399,3 +399,9 @@ in `tests/okta_sync_oauth_check.py` fail against the first loader and pass now.
T13.9 follow-up 2 (2026-10-16): the second deploy decoded the value but the text was not JSON.
The loader now also names a PEM key, adds missing outer braces, unwraps a value that was encoded
twice, and its "not JSON" message gives the length and the kind of first character (counts only).
T13.9 follow-up 3 (2026-10-16): the third deploy decoded the base64 to 1,760 characters that start
with a brace, but Python's strict JSON reader refused them (PowerShell accepted the same text).
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).