You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IdP advertises an issuer with a trailing slash in the discovery doc, but emits the RFC 9207 iss authorization-response parameter without one. RFC 9207 requires the iss value to be identical to the issuer identifier. Strict clients that compare them byte-for-byte reject the callback.
so oidc-provider's iss param (enabled via authorization_response_iss_parameter_supported: true) is the raw issuer. When the configured issuer has no trailing slash:
callback iss → http://host:port
Symptom
solid-oidc (the client behind the xlogin widget) stores config.issuer from discovery and then strict-compares it to the callback iss:
(Note: its login() is slash-tolerant via trimSlash(), but handleRedirectFromLogin() is not.) The throw happens before the token request, so POST /idp/token never fires and sign-in silently bounces back to the app with no session. Reproduced embedding JSS on Android (nodejs-mobile) with idpIssuer lacking a trailing slash; tracked in #522.
Fix options
Make the iss param and discovery issuer identical — feed oidc-provider the same normalized (trailing-slash) issuer used in the discovery doc, or drop the discovery-only normalization so both are slash-free.
At minimum, document that the configured issuer must already carry the canonical trailing slash.
(Workaround on the embedding side: pass idpIssuer already ending in /, which makes normalizedIssuer === issuer and aligns both. That fixed sign-in for the Android app.)
Surfaced by the Android (nodejs-mobile) work — tracked in #522. This was the final blocker to a working sign-in: once the issuer/iss matched, the token exchange fired and the OIDC login completed end-to-end on-device.
Activity
melvincarvalho commentedon May 23, 2026
Surfaced by the Android (nodejs-mobile) work — tracked in #522. This was the final blocker to a working sign-in: once the issuer/
issmatched, the token exchange fired and the OIDC login completed end-to-end on-device.bump version to 0.0.207