AWS ALB 561 Unauthorized (identity provider error)
An ALB authenticate action got an error from the identity provider (IdP) while authenticating the user.
HTTP 561 UnauthorizedALB 561 identity provider error561 Unauthorized authenticate-oidc Meaning
Check the IdP configuration (client ID/secret, token endpoint, redirect URI), IdP availability and the ALB authenticate rule. The ALB logs the exact IdP error in the error_reason access-log field.
Common causes
- Wrong client ID/secret in the ALB rule
- IdP token endpoint unreachable
- Redirect/callback URI mismatch
- Expired IdP credentials
- Scope/claims rejected by the IdP
⚡ Quick fix
- Read
error_reasonin the ALB access log - Correct client ID/secret and callback URL
- Confirm the IdP endpoint is reachable from the VPC
Detailed fix by platform
AWS CLI
aws elbv2 describe-rules --listener-arn LISTENER_ARN --query "Rules[].Actions[?Type=='authenticate-oidc']"
How to diagnose
- error_reason — Which?
- Client secret — Valid?
- IdP — Reachable?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in HTTP
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026