nodeSolidServer / nodeSolidServer/node-solid-server
issuer URIs with a path part don't work
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
i originally opened this as https://github.com/solid/oidc-auth-manager/issues/44 but perhaps i should have started here to target the right audience.
oidc-auth-mananger seems to make an invalid assumption that all OIDC Issuers are URIs with an empty path part. if a webid has an OIDC Issuer URI with a path part (like my webid https://zenomt.zenomt.com/card.ttl#me with issuer https://zenomt.com/oidc/), it can never be matched against the id_token iss claim because the discovered issuer URI is reduced to its origin before being compared. see these lines in preferred-provider.js.
OIDC Issuers are allowed to have path parts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/preferred-provider.js around lines 70-73, where the discovered issuer URI is reduced before comparison with the id_token iss claim. Verify the OpenID Connect discovery requirement for issuer path parts, then preserve the path during matching. Done means an issuer such as https://zenomt.com/oidc/ can match the corresponding iss claim.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100