hcengineering / hcengineering/huly-selfhost
Gitlab as OIDC Error: did not find expected authorization request details in session, req.session["oidc:gitlab.mydomain.com"] is undefined
- Dominant language
- Shell
- Stars
- 3.5k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
## Issue using gitlab [oidc](https://docs.gitlab.com/integration/openid_connect_provider/) as oidc provider
Environment variables:
```
HULY_VERSION=v0.6.429
HOST_ADDRESS=myhuly.mydomain.com
ACCOUNTS_URL=https://accounts-huly.mydomain.com
OPENID_CLIENT_ID=private
OPENID_CLIENT_SECRET=private
OPENID_ISSUER=https://gitlab.mydomain.com
```
Error:

Logs:
```
{"level":"info","message":"try auth via","provider":"openid","timestamp":"2025-02-22T18:16:45.511Z"}
Error: did not find expected authorization request details in session, req.session["oidc:gitlab.mydomain.com"] is undefined
at /usr/src/app/bundle.js:210011:17
at OpenIDConnectStrategy.authenticate (/usr/src/app/bundle.js:210059:9)
at attempt (/usr/src/app/bundle.js:196557:20)
at authenticate (/usr/src/app/bundle.js:196558:23)
at /usr/src/app/bundle.js:197207:11
at new Promise ()
at /usr/src/app/bundle.js:197206:16
at /usr/src/app/bundle.js:197181:11
at new Promise ()
at passportAuthenticate (/usr/src/app/bundle.js:197153:19)
at router.get.email (/usr/src/app/bundle.js:210188:13)
at dispatch (/usr/src/app/bundle.js:212328:36)
at /usr/src/app/bundle.js:223081:20
at dispatch (/usr/src/app/bundle.js:212328:36)
at /usr/src/app/bundle.js:212320:16
at dispatch (/usr/src/app/bundle.js:223085:35)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.