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

Add support for multiple issuers #627

Closed
wants to merge 4 commits into from

Conversation

patrick91
Copy link

@patrick91 patrick91 commented Mar 9, 2021

Closes #433

This PR adds support for specifing multiple issuers, similar to what we do for audience.

@@ -212,7 +212,10 @@ def _validate_iss(self, payload, issuer):
if "iss" not in payload:
raise MissingRequiredClaimError("iss")

if payload["iss"] != issuer:
if isinstance(issuer, str):
Copy link
Owner

Choose a reason for hiding this comment

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

do we also need to guard against other invalid values for issuer?

see https://github.com/jpadilla/pyjwt/blob/master/jwt/api_jwt.py#L128-L129

tests/test_api_jwt.py Outdated Show resolved Hide resolved
@peterfarrell
Copy link

I'm interested in this feature.

@github-actions github-actions bot added the stale Issues without activity for more than 60 days label May 24, 2022
@github-actions github-actions bot closed this May 31, 2022
@ChegeBryan
Copy link

I'm interested in this feature.

That makes two of us.

@ChegeBryan
Copy link

@jpadilla is support for multiple issuers coming soon?

@jpadilla
Copy link
Owner

jpadilla commented Jul 9, 2022

there were some unresolved comments on this pull request, I'd gladly review again another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues without activity for more than 60 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow multiple issuers?
6 participants