Custom authorizer context variable in API Gateway HTTP integration URL

隐身守侯 提交于 2020-07-11 06:36:34

问题


I would like to use an API Gateway HTTP integration towards an endpoint, where certain parts of the URL are provided by the custom authorizer (e.g., user ID or user grants).

I could definitely use a Lambda integration but that introduces quite significant response time overhead.

Unfortunately syntax that works for stageVariables does not seem to work for custom authorizer context - ${context.authorizer.variableName}.

Note: To answer some comments, yes, the warning sign is there bacause I used a dummy url string. Has nothing to do with the fact that replacement of authorizer context variables does not work for me, no matter what the URL is.


回答1:


The URL needs to valid, meaning like https://example.com/foo with a protocol and hostname.

Starting with url/ is never going to be valid.



来源:https://stackoverflow.com/questions/46164747/custom-authorizer-context-variable-in-api-gateway-http-integration-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!