Heya! I've got API Gateway set up with a simple a...
# help
t
Heya! I've got API Gateway set up with a simple authorization type that executes a custom lambda authorizer. When the authorizer returns a response to my front end, I'm only getting { message: "Forbidden" }. I'm not seeing the context data that I've added along side of "isAuthorized": true/false. Does anyone know if it's possible to get that context included in the response?
o
The response for the authorizor doesn’t get sent to the client (your front end in this case). The context gets added to the event processed by the lambda function for the route being accessed. Your route handler lambda can get that info out of the event and return it in its response
t
Thanks @Omi Chowdhury! That makes sense for Authorized calls where things can flow from the authorizer to the handler. But since there's no follow-up handler for an Unauthorized, I'm guessing that I can't return anything to the user in that case. Does that sound right?
o
Yup, that’s how that goes
t
Okie dokie. Thank you so much @Omi Chowdhury!