-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
bug: 404 Error Page Returned After Clicking Login Button Issue #6238
Comments
What kind of application/SDK? And could you provide steps to reproduce this? |
Could you please provide a minimal project that can reproduce this error? One possibility is that the users open the sign in page directly, without the init of SDK sign in process. |
One possibility is cookie lost. When calling "sign-in" via SDK, the user is redirected to url "/oidc/auth?client_id=xxxx" and init a session with key saved in cookie. If the browser is rejects the cookie, then the session can not be found. |
Thank you, I'll observe the situation. I'm curious to know under what circumstances the cookie might become invalid. Also, I'd like to understand if there's an automatic cleanup mechanism in place, such as deleting old cookies or redirecting back to the login page. The current 404 error is causing confusion for users. I would appreciate your insights on this matter. |
Yes, good suggestion, the "unknown session" can be confusing, we'll revisit this design. |
I truly appreciate your assistance! This issue has been a persistent concern of mine, and I frequently find users approaching me, inquiring about the 404 error. I then have to inform them that clearing their cache is necessary. Thank you once again for your support. |
1 We've had one user reporting of similar issue (in Chrome). User tries to sign in but gets redirected to https : //login....domain....app/unknown-session |
this link may help you |
I don't think that's it because I have been set proxy_set_header X-Forwarded-Proto This configuration is equivalent to |
群晖吗,我最早也是设置的$scheme ,换成https就好了,你可以试一试。看你截图有汉字,直接中文回复了 |
感谢 我改了试一试 |
Describe the bug
Recently, while using Logto, we have encountered numerous user reports indicating that clicking the login button results in a 404 page. This issue is not isolated; multiple users have experienced it. Interestingly, the problem resolves after clearing the browser cache.
Expected behavior
Users should be able to log in without encountering a 404 error page.
How to reproduce?
Context
Screenshots
The text was updated successfully, but these errors were encountered: