3 ms·
Anyone know if ALB supports custom authentication lambdas? That's one of the big features that's keeping us on API Gateway.
by davewritescode 8y ago
Anyone know if ALB supports custom authentication lambdas? That's one of the big features that's keeping us on API Gateway.
- xmly 8y agoWhy not move the Auth to the code instead? Add one middleware just.
- renke1 8y agoGood point, if you do authentication in your code manually (like verifying a JWT issued by Cognito) you could also directly invoke the Lambda from your client and completely forgo ALB saving even more money (at the cost of slightly increased complexity, that is).
- luhn 8y agoAFAICT they don't. I haven't looked at the details of Lambda Layers yet, but I wonder if they might help with this? Build an authentication layer that you can bundle with all your ALB Lambdas.
- ranman 8y agoNot custom auth but it supports any OIDC provider or cognito which can do lambda functions as part of reg and auth. https://aws.amazon.com/blogs/aws/built-in-authentication-in-alb/ https://aws.amazon.com/blogs/aws/built-in-authentication-in-...
- renke1 8y agoThe way I read this, it's not exactly a substitute for the Cognito authorizer, which makes easy to use stateless session for SPAs, or is it?