Skip to content

APIGateway.V2.Request Authorizer jwt visibility #166

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

Closed
MoridinBG opened this issue Sep 13, 2020 · 2 comments
Closed

APIGateway.V2.Request Authorizer jwt visibility #166

MoridinBG opened this issue Sep 13, 2020 · 2 comments
Milestone

Comments

@MoridinBG
Copy link

Currently the JWT struct on the Context's Authorizer is public, but the jwt instance is not. Is this a design decision?
Is there a better approach? Currently I am getting the token from the request authorization header and decoding manually to get claims.

I have several lambdas on an HTTP APIGateway API.

SwiftAWSLambdaRuntime version/commit hash

0.2.0

Swift & OS version (output of swift --version && uname -a)

Swift 5.2.4@MacOS 10.5/Swift 5.2.5@Amazonlinux2

@fabianfett
Copy link
Member

Thanks @MoridinBG, if you mean this line:

This has been a terrible oversight from my side. Would you be willing to provide a PR?

@MoridinBG
Copy link
Author

Gladly

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

No branches or pull requests

3 participants