-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: proposed refactor for authorizers design #5584
Merged
nija-at
merged 5 commits into
nija-at/apigateway-lambdaauthorizer
from
benisrae/apigateway-authorizers-proposal
Jan 2, 2020
Merged
chore: proposed refactor for authorizers design #5584
nija-at
merged 5 commits into
nija-at/apigateway-lambdaauthorizer
from
benisrae/apigateway-authorizers-proposal
Jan 2, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- rename `AuthorizerBase` to `Authorizer`. This class should actually have the `CfnAuthorizer` instantiation, but will only be introduced when an additional authorizer is included. - simplify `AuthorizerBase` dramatically - move logic to cache `restApiId` from `AuthorizerBase` to `TokenAuthorizer`. When an additional authorizer is added, we will refactor. - remove the usage `Authorizer.token`. It is non-idiomatic in this context since we support one authorizer reused multiple times.
…zer' into benisrae/apigateway-authorizers-proposal
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
eladb
changed the title
Proposed refactor for authorizers design
chore: proposed refactor for authorizers design
Dec 30, 2019
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
mergify bot
pushed a commit
that referenced
this pull request
Jan 2, 2020
* feat(apigateway): L2 support for lambda token authorizers * Address PR comments * More PR feedback * Restructure binding * Restructuring classes to allow for Authorizer.token() and Authorizer.iam() experience * PR feedback * Authorizer -> Authorization * drop using Physical Name * Switch to eslint recommended import style * chore: proposed refactor for authorizers design (#5584) * simplify authorizers class design - rename `AuthorizerBase` to `Authorizer`. This class should actually have the `CfnAuthorizer` instantiation, but will only be introduced when an additional authorizer is included. - simplify `AuthorizerBase` dramatically - move logic to cache `restApiId` from `AuthorizerBase` to `TokenAuthorizer`. When an additional authorizer is added, we will refactor. - remove the usage `Authorizer.token`. It is non-idiomatic in this context since we support one authorizer reused multiple times. * moved Authorizer to authorizer.ts * fix broken references and types Co-authored-by: Niranjan Jayakar <16217941+nija-at@users.noreply.github.com> * Documentation updates & PR feedback Co-authored-by: Elad Ben-Israel <benisrae@amazon.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AuthorizerBase
toAuthorizer
. This class should actually have theCfnAuthorizer
instantiation, but will only be introduced when an additional authorizer is included.AuthorizerBase
dramaticallyrestApiId
fromAuthorizerBase
toTokenAuthorizer
. When an additional authorizer is added, we will refactor.Authorizer.token
. It is non-idiomatic in this context since we support one authorizer reused multiple times.