Cognito with Load Balancer

0

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...

1개 답변
0

Hi,

the OIDC claims (and Access Token ) are only available to backends of Application Load Balancer cause it is Application Load Balancer that acts as the OAuth2 client in this case and receives the JWTs from Cognito.

Adding a CloudFront and Lambda@Edge won't work as they are before the Application Load Balancer.

Can add a Lambda function or an API Gateway as the backend of the Application Load balancer to provide the Header as needed and proxify access to your Apache server.

Jeff

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠