Static pages, AWS API Gateway, Custom Authorizers and JWT tokens: how?

I found the solution to this and posted the details here.