Issues with JWT and OIDC Authentication on the Same Application Load Balancer

January 28, 2026 1 answer
Asked by ~gentle correction
I've set up JWT authentication on my Application Load Balancer (ALB) and I'm running into issues. Even after configuring it on a different host header and a sub-path, plus placing it at the end of my rules list, the callback to /oauth2/idpresponse isn't functioning correctly. As soon as I remove the last rule, the OIDC authentication starts working again. Has anyone else faced a similar problem?

Answers

-weekend-shift-
It sounds like you might be experiencing a priority issue with your ALB rules, even if theyโ€™re placed in the correct order. The rules aren't just about their placement; sometimes specific combinations can cause unexpected behavior. What exact rule are you trying to implement for JWT? Could you share the details or any logs? Sometimes seeing the actual rules can help diagnose the problem better.

~ridge9: Here's a link to an image showing my current setup. In this configuration, neither OIDC authentication is working. Once I delete the last ruleโ€”leaving just a default 404โ€”OIDC starts functioning again. It feels like it might be a bug with how ALB handles multiple auth methods. Anyone have thoughts on this?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions