Commit 75e69b9
committed
login: discover IdP via bare
JSS profiles declare the OIDC issuer using the bare term
`oidcIssuer` (aliased to solid:oidcIssuer in @context). My
discoverIdpFromWebId() only looked for the prefixed form
(`solid:oidcIssuer`), so the field was never found on JSS
profiles, the fallback to `new URL(webId).origin` fired, and
solid-oidc raised "Issuer mismatch" — the WebID's origin
(test.solid.social) doesn't match the openid-config issuer
(solid.social/) that test.solid.social returns from its own
.well-known/openid-configuration.
Now reads `profile.oidcIssuer` first, falling back to the
prefixed / full-URI forms for profiles emitted by other servers
that don't alias the term.oidcIssuer term (sso#1 fix)1 parent 8f4b305 commit 75e69b9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
0 commit comments