How can I configure ALB to render an OIDC error response from the IdP?

0

When an Application Load Balancer (ALB) is configured to authenticate users against an OIDC IdP provider, there are a variety of circumstances where the IdP may deny access, thereby redirecting the user back to the ALB with the "error" and "error_description" query parameters, as per the OAuth2 spec. (One such example is if the user is denied access from the context of an Auth0 post-login action.)

In these scenarios, it appears that the ALB will simply automatically render a blank "401 Authorization Required" page, rather than displaying the error details, or providing the ALB target an opportunity to respond to the error in a user/client-friendly manner. I've reviewed (and even commented) on the troubleshooting article, but I've not found any solution so far.

Is there any configuration or other possibility for handling this case in a user-friendly manner? At the very least, the page the error sees should provide an option for retrying the authentication process.

已提問 10 個月前檢視次數 162 次
沒有答案

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

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

回答問題指南