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?