amazon web services - Api Gateway access UserAgent and Ip from Custom Authorizer -
in body mapping template of apigateway resource can pass user-agent , ip of client lambda function.
{ "client_ip":"$util.escapejavascript($input.params('x-forwarded-for'))", "user_agent" : "$util.escapejavascript($input.params('user-agent'))" }
is possible pass information before? lambda function used custom authorizer apigateway?
you can't modify contents of what's being sent authorizer. available things methodarn
, authorizatontoken
, type
.
Comments
Post a Comment