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

Fix jwt authorizers payload v2 #1109

Merged

Conversation

NicolasSeiler
Copy link
Contributor

Description

This PR fixes the JWT authorizer payload for the payload v2. It also removes the principalId field from the payload, since this doesn't seem to exist on the v2 payload. (Please correct me if this is wrong.)

Motivation and Context

Previously, the claims and scopes were nested according to the v1 format, which breaks functions that expect the v2 payload.

How Has This Been Tested?

This was tested manually on my machine using a JWT authorizer with an AWS Cognito User Pool as the issuer and a TS function.

@dherault dherault merged commit 1454da7 into dherault:master Oct 8, 2020
@dherault
Copy link
Owner

dherault commented Oct 8, 2020

Thanks @NicolasSeiler, will ship with the next version!

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.

None yet

2 participants