Skip to content

Fix alg matching in pick_key #8

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

Merged
merged 2 commits into from
May 30, 2018
Merged

Conversation

janste63
Copy link
Contributor

@janste63 janste63 commented May 8, 2018

I noticed this problem when trying to verify JWT signatures with key entries that specified "alg". The simple solution was to make "alg" wildcard match like the "kid".
Another improvement could also be to supply the "alg" when picking keys for JWT signature verification. But I'vent examined the code enough to see if it has some other implications.

@rohe
Copy link
Contributor

rohe commented May 8, 2018

Could you provide a test mimicking your use case ?

@janste63
Copy link
Contributor Author

janste63 commented May 8, 2018

I added a test case at end of test_5_jwt.py. The scenario is that I download a JWKS with public keys from an OIDC sever that has "alg" set.

@janste63
Copy link
Contributor Author

Ping, is it possible to get this merged?

@rohe rohe merged commit 6c0761b into IdentityPython:master May 30, 2018
@janste63
Copy link
Contributor Author

janste63 commented Jun 1, 2018

Thanks a lot! Could you also publish the release?

@rohe
Copy link
Contributor

rohe commented Jun 1, 2018

Will do later today

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

Successfully merging this pull request may close these issues.

2 participants