Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] [FIX] auth_jwt: Unhandled PyJWKClientError in _get_key #626

Merged

Conversation

paradoxxxzero
Copy link
Contributor

This commit 5e726ac breaks the next_validator_id loop.

_get_key calls jwks_client.get_signing_key(kid) which can raise PyJWKClientError which is not caught by the validation loop (only catching Unauthorized)

Putting _get_key in the preceding try except fix this problem since it catches all Exception

This breaks the validation loop with next_validator_id
@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@sbidoul
Copy link
Member

sbidoul commented Mar 19, 2024

/ocabot merge patch

@paradoxxxzero do you plan to forward port?

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-626-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 48b8d7e into OCA:14.0 Mar 19, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cff6f5f. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants