lepture / authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://authlib.org/
BSD 3-Clause "New" or "Revised" License
4.45k stars 445 forks source link

Use single key in JWK if JWS does not specify `kid` #596

Closed dklimpel closed 9 months ago

dklimpel commented 9 months ago

Fixes: #462

If no special kid is requested, try to use the only one key. Also add a unit test.

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)