Cognito with Load Balancer


I'm trying to make the Cognito SSO. I'm already implemented it with Apache Server and it works ! Now I'm trying to do it without Apache, but with Load Balancer which redirect me to the Cognito Authentification. The authentification works, but next I need to do the similar thing to

RequestHeader set CAS-User something

Is it possible to do it with Load Balancer or maybe with Lambda Function or another method ?... This header is required by my application.

I was searching for CloudFront and LambdaEdge solution, but still can not understand how to get OIDC_Claim from Cognito after a authentification and then set with it my header...

asked 8 months ago41 views