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