Solutionunvalidated
Fetch the public key certificate from Keycloak to verify the JWT token signature. — certs_url = f"{self.keycloak_url}/realms/{self.realm}/protocol/openid-connect/certs". Tension: Decode and verify the JWT token signature using the public key, while skipping audience and issuer checks. Outcome: jwt.decode( token, public_key, algorithms=['RS256'], options={ 'verify_aud': False, 'verify_iss': False } ).
e08d5e4c-adf4-4a44-8792-396615b3b477
Fetch the public key certificate from Keycloak to verify the JWT token signature. — certs_url = f"{self.keycloak_url}/realms/{self.realm}/protocol/openid-connect/certs". Tension: Decode and verify the JWT token signature using the public key, while skipping audience and issuer checks. Outcome: jwt.decode( token, public_key, algorithms=['RS256'], options={ 'verify_aud': False, 'verify_iss': False } ).