italia / spid-cie-oidc-nodejs

The SPID/CIE OIDC Federation for Node.js
Apache License 2.0
11 stars 3 forks source link

No response from oidc/rp/providers call #40

Closed alessia7 closed 2 years ago

alessia7 commented 2 years ago

Hi, I followed all instructions to run RP example project but the oidc/rp/providers call (when I click on "Entra con SPID" button) always responses with no data. The federation (0.0.0.0:8000) and cie provider (0.0.0.0:8002) work properly but I don't have any response in this case. I've registered the relying party and created new profile on the OIDC Federation Entity Administration (http://127.0.0.1:8000/admin/). I'm trying with the latest version of both projects spid-cie-oidc-nodejs and spid-cie-oidc-django. Are there other tips I must follow? Schermata no providers - button

Schermata no providers - postman
freddi301 commented 2 years ago

Hi, I updated the configuration readme see here. Make sure you have correctly created public.jwks.json private.jwks.json trust_marks.json files in the examples/express-react-relying-party directory.

The reason there are no providers is that some error occurred during trust chain validation.

If the problem persist we can schedule a screen sharing session to debug the issue.

freddi301 commented 2 years ago

You can also read the log files in the logs directory (it gets populated after starting the server on 127.0.0.1:3000)

alessia7 commented 2 years ago

I've already created these files in examples/express-react-relying-party directory. As suggested, I found the error reading the log files! Here I read what is the problem: the sub configuration. I had configured RP sub 127.0.0.1:3000 and not 127.0.0.1:3000/oidc/rp. Changing this field I solved.

Thank you!