Application Load Balancer doesn't send user claims in HTTP headers

0

I'm trying to authenticate users using aws alb.

I have Open ID Connect Provider application and it works.

Following https://docs.amazonaws.cn/en_us/elasticloadbalancing/latest/application/listener-authenticate-users.html#authentication-flow , after user authenticated, load balancer should send the user claims in HTTP headers.

My OIDC provider application sends user claims to LB, but I cannot find x-amzn-oidc-* headers from the request.

How do I get x-amzn-oidc-* headers from LB?

已提問 4 年前檢視次數 2034 次
2 個答案
0
已接受的答案

Hi,

Once the user is authenticated by the IdP and user claims are sent to the ALB, the ALB should be sending the x-amzn-oidc-* headers to the backends with every request.
Can you confirm if you are checking for headers on the client side or on the server?
Note that the headers are not set on the client side for the responses but are set only on the requests sent to the server. Hence will only be visible on your application side as normal HTTP headers.

If you are still facing issues please provide your ELB name so we can check on our end.

AWS
已回答 4 年前
0

Hi,
I checked the header from client. When I check my server, I could get x-amzn-oidc-* headers.
Thanks.

已回答 4 年前
  • Hi @JangwookKim, I know it has been long but I am facing the same challenge. Would you be able to share how and where did you check the server for these headers? I am running a website (HTTPD backend) on EC2 behind an ALB. The authentication is working fine, but I am unable to see the x-amzn-* headers anywhere.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南