561 HTTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

AWS ALB 561 Unauthorized (identity provider error)

An ALB authenticate action got an error from the identity provider (IdP) while authenticating the user.

Exact message you may see HTTP 561 UnauthorizedALB 561 identity provider error561 Unauthorized authenticate-oidc
Seen on: AWS HTTP

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

  1. Read error_reason in the ALB access log
  2. Correct client ID/secret and callback URL
  3. Confirm the IdP endpoint is reachable from the VPC

Detailed fix by platform

AWS CLI

  1. aws elbv2 describe-rules --listener-arn LISTENER_ARN --query "Rules[].Actions[?Type=='authenticate-oidc']"

How to diagnose

  1. error_reason — Which?
  2. Client secret — Valid?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

401 — HTTP 401 Unauthorized (HTTP)401460 — AWS ALB 460 Client Closed Connection (HTTP)460463 — AWS ALB 463 X-Forwarded-For header has too many IP addresses (HTTP)463510 — HTTP 510 Not Extended (HTTP)510ACM region — CloudFront can't use my ACM certificate: it must be requested in us-east-1 (N. Virginia) (SSL / TLS)ACM regionALB listener — ALB HTTPS listener: CertificateNotFound / default certificate missing or SNI certificate list incomplete (SSL / TLS)ALB listenerAWS_CA_BUNDLE — AWS CLI/SDK: SSL validation failed for https://... certificate verify failed (custom CA bundle / proxy) (SSL / TLS)AWS_CA_BUNDLElogin_required — OIDC Error: login_required / interaction_required / consent_required (silent authentication failed) (Authentication)login_required561

Explore the map of this error Full error map →

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