Closed qertis closed 1 year ago
I do note two things straight away:
1) Your URLs do not match, in the login you're using oidcIssuer: "http://solid:3000/"
with a redirectUrl (application URL) of "http://web-app:9000/"
— these strings need to be exact values as advertised in the /.well-known/openid-configuration
of your solid server.
2) The error seems to come from when the SDK attempts to fetch the issuer metadata, you can test this by visiting: http://localhost:3000/.well-known/openid-configuration
(or for the code above, http://solid:3000/.well-known/openid-configuration
). That is, we attempted to feature the information from your solid server about it's OIDC configuration, but your server gave a 500 error, when we expected a 200.
Best bet is to check the server logs of your CSS installation.
Another debugging option is to add additional logging into /usr/src/app/node_modules/openid-client/lib/helpers/process_response.js:41:11
to check what response your OIDC server (CSS) actually returned.
Thanks. Moved issue to https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1562
Bug description
Cannot login. HTTP 500 error.
To Reproduce
Install docker compose community server and nodejs web-dev server
web-dev server.js
You look data like this:
Expected result
session.login function is ok.
Actual result
Environment