Normalize + guard the IdP base URL: https (or http on a loopback IP literal for dev), no query/hash, no trailing slash — the normalized string is also the session-cache key, so …/api/auth and …/api/auth/ must land on the same entry.
…/api/auth
…/api/auth/
Normalize + guard the IdP base URL: https (or http on a loopback IP literal for dev), no query/hash, no trailing slash — the normalized string is also the session-cache key, so
…/api/authand…/api/auth/must land on the same entry.