T13.9 follow-up 2 fix: keep quote marks that belong to brace-less JWK fields (D23)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user