kutt icon indicating copy to clipboard operation
kutt copied to clipboard

Container crashing after OIDC configuration enabled

Open NakedRoboticCore opened this issue 1 month ago • 1 comments

I tried enabling OIDC with the following environment variables, per the documentation:


OIDC_ENABLED=true OIDC_ISSUER=https://auth.mydomain.net/authorize OIDC_CLIENT_ID=<client_id_obtained_from_my_oidc_provider> OIDC_CLIENT_SECRET=<client_secret_obtained_from_my_oidc_provider> OIDC_SCOPE=openid email profile OIDC_EMAIL_CLAIM=email

When I rebuild the container I get the following error message:


<anonymous_script>:1

^

SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON at JSON.parse () at IncomingMessage.get (/kutt/node_modules/openid-client/lib/helpers/request.js:156:30) at processResponse (/kutt/node_modules/openid-client/lib/helpers/process_response.js:55:25) at Issuer.discover (/kutt/node_modules/openid-client/lib/issuer.js:152:18) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async enableOIDC (/kutt/server/passport.js:86:20) { info: 'Failed connecting to OIDC issuer.' }

Node.js v22.21.1

Any idea what can be happening?

NakedRoboticCore avatar Dec 04 '25 22:12 NakedRoboticCore

It fails to connect to the OIDC issuer (Failed connecting to OIDC issuer.) Your issuer is responding with an HTML document, I think for OIDC to work your issuer must respond in JSON format.

poeti8 avatar Dec 07 '25 06:12 poeti8