You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use an external SSO with OIDC I got a 403 error on the callback URL. I tried with a custom SSO and with Google OIDC -> same behaviours :(
I added logs in the code and I was able to get the error :
Error: did not find expected authorization request details in session, req.session["64b2967b-5c9b-4cc5-860f-d4e16733084d"] is undefined
server-1 | at /app/node_modules/openid-client/lib/passport_strategy.js:132:13
server-1 | at OIDCAuthStrategy.authenticate (/app/node_modules/openid-client/lib/passport_strategy.js:191:5)
server-1 | at OIDCAuthStrategy.authenticate (/app/packages/twenty-server/dist/src/engine/core-modules/auth/strategies/oidc.auth.strategy.js:26:22)
server-1 | at attempt (/app/node_modules/passport/lib/middleware/authenticate.js:378:16)
server-1 | at authenticate (/app/node_modules/passport/lib/middleware/authenticate.js:379:7)
server-1 | at /app/node_modules/@nestjs/passport/dist/auth.guard.js:97:3
server-1 | at new Promise (<anonymous>)
server-1 | at /app/node_modules/@nestjs/passport/dist/auth.guard.js:89:83
server-1 | at OIDCAuthGuard.<anonymous> (/app/node_modules/@nestjs/passport/dist/auth.guard.js:50:36)
server-1 | at Generator.next (<anonymous>)
I'm not sure but my investigation point that the line that produce the error is
This is expected, because in the docker compose there is the default value which is the same. If I display the variable inside the container, the endpoint is correct, cf :
But I also tried uncommenting it in the .env file, unfortunately, no change.
Bug Description
When trying to use an external SSO with OIDC I got a 403 error on the callback URL. I tried with a custom SSO and with Google OIDC -> same behaviours :(
I added logs in the code and I was able to get the error :
I'm not sure but my investigation point that the line that produce the error is
twenty/packages/twenty-server/src/engine/core-modules/auth/guards/oidc-auth.guard.ts
Line 63 in edf0a18
I tried this on version v0.35.0 with a fresh install with docker. Here are my config files:
Expected behavior
The expected behavior is that the user can connect himself to the application.
The text was updated successfully, but these errors were encountered: