9

I have an AWS API setup that works correctly. I use a custom authorizer and I can return 401 if the user doesn't have the correct token. Is it possible however to redirect the user to our Authorization service where they would authenticate and get the authorization token?

According to this answer I can setup the http codes for an API gateway, but when using a custom authorizer the authorizer expects a policy as response from Lambda. What should I do in that case?

Community
  • 1
  • 1
Alex Lungu
  • 1,104
  • 2
  • 12
  • 28
  • 1
    API Gateway doesn't allow to change the response for unauthorized case, but you are welcome to stack the API to the other API and re-map the status code and the location header. – Ka Hou Ieong Jan 12 '17 at 20:07

0 Answers0