From c75450a00030560830a82c3ceabbef19e1f3a65d Mon Sep 17 00:00:00 2001 From: Matt Mabrey Date: Fri, 16 Oct 2026 16:24:21 -0700 Subject: [PATCH] T13.9 follow-up 2 fix: keep quote marks that belong to brace-less JWK fields (D23) --- server/okta_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/okta_sync.py b/server/okta_sync.py index 82090c7..9244f21 100644 --- a/server/okta_sync.py +++ b/server/okta_sync.py @@ -179,7 +179,7 @@ def _load_jwk() -> dict: raw = _key_raw() if not raw: raise _fail("OKTA_SYNC_PRIVATE_KEY is not set") - if len(raw) >= 2 and raw[0] == raw[-1] and raw[0] in "\"'": + if len(raw) >= 2 and raw[0] == raw[-1] and raw[0] in "\"'" and raw[0] not in raw[1:-1]: raw = raw[1:-1].strip() if raw.startswith(("{", '"', "-----BEGIN")): text = raw