-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenID connect auth (registration?) does not work #7394
Comments
8000
It looks like the auth is not successful on the IdP side. I'd suggest to:
|
@lexiv0re Something must have gone wrong here, the code block doesn't log on failure platform/pods/authProviders/src/openid.ts Line 88 in 52b21ef
My suggestion is to use koa-passport props to log authentication status |
My issue was that my idp encrypted the jwt token, and huly does not support that. My Idp is authentik and since I disabled encryption it all works! Huly error message:
|
Description of the issue
I have set up login with openid-connect via environment variables:
OPENID_CLIENT_ID=fe16398962548a0113ba
OPENID_CLIENT_SECRET=secret
OPENID_ISSUER=https://identity.a-star.org.ru/.well-known/openid-configuration
ACCOUNTS_URL=https://a-star.org.ru/_accounts
When I perform login by pressing 'Continue with openid' button on /login page, it succesfully redirects to casdoor (identity.a-star.org.ru), I sign in, then it redirects to https://a-star.org.ru/_accounts/auth/openid/callback?code=a067ce35231b327acd7b&state=%7B%7D, then it redirects to /login without actual session.
I recorded video:
https://github.com/user-attachments/assets/b4048389-409b-41ad-8ca2-d705a828c6a4
Your environment
Steps to reproduce
Logs from docker
Complete logs:
logs.txt
Expected behaviour
I should be logged in
Actual behaviour
I am not able to log in
Possible solutions
The suspicious code which should be debugged is placed from here:
platform/pods/authProviders/src/openid.ts
Line 66 in 52b21ef
to here
https://github.com/hcengineering/platform/blob/52b21efee759593c356c60052c02e53c20f4417f/pods/authProviders/src/openid.ts#L89C1-L90C1
The text was updated successfully, but these errors were encountered: