hcengineering / hcengineering/huly-selfhost

IdP Authentication with KeyCloak not working

Open
#94 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
3.5k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

Hi all,

I trying to configure OpenID authentication via Keycloak but I am seeing the following error.

Any idea the problem reside on which side ?

My compose.yml included the following lines for account service.

```
- OPENID_CLIENT_ID=huly.domain.com
- OPENID_CLIENT_SECRET=
- OPENID_ISSUER=https://keycloak/kc/realms/master
```

When click on the "Continue with OpenID" at login page
![image](https://github.com/user-attachments/assets/6fe59b19-ca9b-41d8-bf57-45f9fd0418a5)

```
huly-selfhost-account-1 | {"level":"info","message":"try auth via","provider":"openid","timestamp":"2024-11-05T15:53:03.591Z"}
huly-selfhost-account-1 |
huly-selfhost-account-1 |
huly-selfhost-account-1 | Error: Unknown authentication strategy "oidc"
huly-selfhost-account-1 | at attempt (/usr/src/app/bundle.js:188174:27)
huly-selfhost-account-1 | at authenticate (/usr/src/app/bundle.js:188266:23)
huly-selfhost-account-1 | at /usr/src/app/bundle.js:188921:11
huly-selfhost-account-1 | at new Promise ()
huly-selfhost-account-1 | at /usr/src/app/bundle.js:188920:16
huly-selfhost-account-1 | at /usr/src/app/bundle.js:188895:11
huly-selfhost-account-1 | at new Promise ()
huly-selfhost-account-1 | at passportAuthenticate (/usr/src/app/bundle.js:188866:19)
huly-selfhost-account-1 | at /usr/src/app/bundle.js:201983:11
huly-selfhost-account-1 | at dispatch (/usr/src/app/bundle.js:212744:36)
huly-selfhost-account-1 |
huly-selfhost-account-1 |
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.