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

Token Authorizer doesn't get linked if FunctionPayloadType missing in template.yml #6910

Closed
Tolsto opened this issue Apr 5, 2024 · 3 comments
Labels
area/local/start-api sam local start-api command type/bug

Comments

@Tolsto
Copy link

Tolsto commented Apr 5, 2024

There is an issue where Token Authorizers are not being linked correctly if the FunctionPayloadType is missing in the template.yml file. This is due to the default value for authorizer_type being initialized as token, but then compared against TOKEN in a case-sensitive manner.

elif authorizer_type == LambdaAuthorizer.TOKEN.upper():
authorizers[auth_name] = SamApiProvider._extract_token_lambda_authorizer(
auth_name, function_name, prefix, identity_object
)

@lucashuy lucashuy added type/bug area/local area/local/start-api sam local start-api command and removed area/local labels Apr 8, 2024
@lucashuy
Copy link
Contributor

lucashuy commented Apr 8, 2024

Thanks for reporting this, we'll prioritize a fix for this within the team's capacity.

@lucashuy
Copy link
Contributor

This fix has been released as part of the SAM CLI 1.119.0 release. Closing issue.

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/local/start-api sam local start-api command type/bug
Projects
None yet
Development

No branches or pull requests

2 participants