aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

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

Open Tolsto opened this issue 1 year ago • 1 comments

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.

https://github.com/aws/aws-sam-cli/blob/c3e154763d758e17ffa86eb7d05ddcc9b27a095e/samcli/lib/providers/sam_api_provider.py#L321-L324

Tolsto avatar Apr 05 '24 23:04 Tolsto

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

lucashuy avatar Apr 08 '24 21:04 lucashuy

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

lucashuy avatar Jun 17 '24 16:06 lucashuy

⚠️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.

github-actions[bot] avatar Jun 17 '24 16:06 github-actions[bot]