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(apigatewayv2): http api - default route does not use the default authorizer #14904

Merged
merged 2 commits into from
Jun 3, 2021
Merged

fix(apigatewayv2): http api - default route does not use the default authorizer #14904

merged 2 commits into from
Jun 3, 2021

Conversation

iRoachie
Copy link
Contributor

@iRoachie iRoachie commented May 28, 2021

The default authorizer worked by passing the authorizer config to routes in the api by the addRoutes method.

We completely forgot about the use case of the default integration, so currently using default integration + default authorizer does not create an authorizer.

This PR fixes the bug and allows using default authorizer + default integration as expected.

Reported by #10534 (comment)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The default authorizer worked by passing the authorizer config to routes in the api by the addRoutes method.

We completely forgot about the use case of the default integration, so currently using default integration + default authorizer does not create an authorizer.

This PR fixes the bug and allows using default authorizer + default integration as expected.
@gitpod-io
Copy link

gitpod-io bot commented May 28, 2021

@iRoachie
Copy link
Contributor Author

cc @nija-at

@iRoachie
Copy link
Contributor Author

iRoachie commented Jun 2, 2021

Bumping again cause it's a bug @nija-at @rix0rrr

@nija-at nija-at changed the title fix: http api default authorizer fix(apigatewayv2): http api default authorizer Jun 3, 2021
@nija-at nija-at self-assigned this Jun 3, 2021
@nija-at nija-at added the @aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2 label Jun 3, 2021
@nija-at nija-at changed the title fix(apigatewayv2): http api default authorizer fix(apigatewayv2): default route does not use the default authorizer Jun 3, 2021
@nija-at nija-at changed the title fix(apigatewayv2): default route does not use the default authorizer fix(apigatewayv2): http api - default route does not use the default authorizer Jun 3, 2021
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Thanks @iRoachie for fixing this.

@mergify
Copy link
Contributor

mergify bot commented Jun 3, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: f202544
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 25412a6 into aws:master Jun 3, 2021
@mergify
Copy link
Contributor

mergify bot commented Jun 3, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@iRoachie iRoachie deleted the fix/http-api-default-authorizer branch June 3, 2021 12:20
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…authorizer (aws#14904)

The default authorizer worked by passing the authorizer config to routes in the api by the addRoutes method.

We completely forgot about the use case of the default integration, so currently using default integration + default authorizer does not create an authorizer.

This PR fixes the bug and allows using default authorizer + default integration as expected.

Reported by aws#10534 (comment)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-apigatewayv2 Related to Amazon API Gateway v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants