Skip to content

Conversation

@miketheman
Copy link
Member

Previously using self.issuer_url didn't make a difference, as the
property is configured on the resolved Publisher class, and has nothing
to do with the inbound value.

Resolves #18845

Signed-off-by: Mike Fiedler miketheman@gmail.com

Previously using `self.issuer_url` didn't make a difference, as the
property is configured on the resolved Publisher class, and has nothing
to do with the inbound value.

Resolves pypi#18845

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Raise an exception if the key isn't found, handled by the caller chain
in `verify_jwt_signature()` prior to trying to decode a value with `None`.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from a team as a code owner October 16, 2025 16:22
)

return mint_token(oidc_service, unverified_jwt, request)
return mint_token(oidc_service, unverified_jwt, unverified_issuer, request)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
Stack trace information
flows to this location and may be exposed to an external user.
@miketheman miketheman merged commit faf778f into pypi:main Oct 16, 2025
21 checks passed
@miketheman miketheman deleted the miketheman/18845-pass-around-issuer branch October 16, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store JWKS keys based on Issuer URL instead of publisher name

2 participants