Skip to content

Commit b8fb79a

Browse files
committed
Update wrong payload clientId property name on access_token
Keycloak returns clientId and not client_id on jwt
1 parent 88d2895 commit b8fb79a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

yepcode_run/api/yepcode_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _client_id_from_access_token(self) -> str:
136136
payload = self.access_token.split(".")[1]
137137
payload += "=" * ((4 - len(payload) % 4) % 4)
138138
decoded_payload = json.loads(base64.b64decode(payload).decode())
139-
return decoded_payload["client_id"]
139+
return decoded_payload["clientId"]
140140
except Exception as e:
141141
raise ValueError(f"Failed to extract client_id from access token: {e}")
142142

0 commit comments

Comments
 (0)