Skip to content

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