jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
4.99k stars 676 forks source link

Update jwt-api to accept either a string or list of strings for issuer validation #913

Closed mattpollak closed 10 months ago

mattpollak commented 10 months ago

This diff updates jwt issuer validation to accept either a string (as it always has) or a List[str], and consideres the jwt iss claim valid if the single string matches or if jwt[iss] is found in the list. Method signatures should be unchanged, though types were updated.

mattpollak commented 10 months ago

If there is anything else I can do to get this merged, please let me know! And thank you for reviewing.