okta / okta-jwt-verifier-python

okta-jwt-verifier-python
https://github.com/okta/okta-jwt-verifier-python
Apache License 2.0
32 stars 15 forks source link

Updated code to verify client_id against cid instead of aud. #55

Open apegadoboureghida opened 6 months ago

apegadoboureghida commented 6 months ago

Changes Made

This pull request addresses an issue in the codebase where the client_id was being verified against the aud claim, which was incorrect. The correct verification should be against the cid claim. This PR updates the code to verify the client_id against the cid claim and ensures the variable names in the code and tests reflect this correction.

Details

Reasons for the Change

The previous code was performing an incorrect verification of the client_id against the aud claim, which could lead to validation errors. This update ensures that the client_id is correctly verified against the cid claim, aligning with the intended functionality.

Checklist

Related Issues

None.

Additional Notes

No additional notes.