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

Open
Tolsto opened this issue Apr 5, 2024 · 1 comment
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.

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