ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
37 stars 81 forks source link

Error when enabling OIDC authentication #258

Open johnnychoque opened 2 years ago

johnnychoque commented 2 years ago

Enabling the "Open ID Connect Authentication" checkbox during the creation of the application generates the following error:

Error: ENOENT: no such file or directory, mkdir './certs/applications'. at Object.mkdirSync (fs.js:1013:3) at generate_app_certificates (/home/administrator/fiware-idm/controllers/web/applications.js:916:8)

The error is resolved by manually creating the './certs/applications' directory. I think the best option is to add code in controllers/web/applications.js:916:8 to create that directory using fs.mkdir before using fs.mkdirSync.

nikosft commented 1 year ago

Related to that: Why a certificate is generated per application?