Kevin Clark
01/15/2021, 11:30 PMfunctions:
listShowNoteSets:
handler: functions/listShowNoteSets.main
events:
- http:
path: shownotes/{PK}
method: get
cors: true
A function definition like that, without authorizer: aws_iam
in it should still be generally accessible by an unauthorized request?
I’m getting a Missing Authentication Token
message back. I can see in API Gateway where there is no authorization required for the path.
The lambda function itself only reads data and works when I’m logged in with a Cognito user.
Do you have any pointers where this could be blocked? Cognito seems like a spot but I haven’t gotten into that and it my next target.
Thanks for any advice!Frank
authorizer: aws_iam
that api route should be publically accessible.Frank
Frank
Kevin Clark
01/15/2021, 11:35 PMFrank
…/shownotes/{something}
Kevin Clark
01/15/2021, 11:36 PMFrank
…/shownotes
Frank
Kevin Clark
01/15/2021, 11:38 PMFrank
Jay
Kevin Clark
01/15/2021, 11:44 PM…/shownotes/{something}
?Frank
.../shownotes/1
would hit that. Is that what you meant?Kevin Clark
01/16/2021, 12:06 AM{something}
after shownotes/
but maybe you just guessed based on context. I’m still finding my way around and debugging is one of those things where I’m a fish out of water here. Any tip I can find is gold which is why I asked.Frank
- http:
path: shownotes/{PK}
Frank
…/shownotes/{PK}
Frank
- http:
path: shownotes
The Lambda would get triggered by …/shownotes
insteadFrank
Kevin Clark
01/19/2021, 11:42 PMshownotes/{PK}
but I just never checked what the request url was in the network tab because I got distracted by the Missing Authentication Token
error.
Frank, thanks so much for the framework and your help!Frank