Skip to content

add support for IAM authorizers #41

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

Merged
merged 5 commits into from
Dec 15, 2023
Merged

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Dec 14, 2023

add support for iam authorizer in addition to JWT
See #40

Motivation:

I need to deploy Swift Lambda function protected by IAM

Modifications:

  • Add an optional iam element inside requestContext
  • mark jwt element as optional (this is a breaking change for existing application consuming this property)

Result:

We can use API Gateway with IAM authentication.
Existing code using jwt authentication will need to handle the optional (but marking it as non optional was incorrect)

@tomerd
Copy link
Contributor

tomerd commented Dec 15, 2023

@swift-server-bot test this please

@tomerd
Copy link
Contributor

tomerd commented Dec 15, 2023

@swift-server-bot add to allowlist

@tomerd
Copy link
Contributor

tomerd commented Dec 15, 2023

@sebsto looks good, some small formatting issues (you can run the soundness task locally with docker)

@tomerd tomerd enabled auto-merge (squash) December 15, 2023 19:12
auto-merge was automatically disabled December 15, 2023 19:43

Head branch was pushed to by a user without write access

@sebsto
Copy link
Contributor Author

sebsto commented Dec 15, 2023

@tomerd soundness checks are OK now.

@tomerd tomerd merged commit 2cf63ff into swift-server:main Dec 15, 2023
@tomerd
Copy link
Contributor

tomerd commented Dec 15, 2023

thank you @sebsto

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.

2 participants