-
Notifications
You must be signed in to change notification settings - Fork 42
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
CAS not working after migration to ynh 12 #497
Comments
Well, I discover that if I'm not already logged in when I click on "Continue with CAS" but I login after then it works. |
Hello, Can you try from testing to see if it solve the issue. |
Still the same. |
So if I understand correctly the issue is with the session on which you are already logged in. If it's the case can you try to logout then login and try again. I would like to be sure that you have the correct cookie when you send the request. |
No, it's the same. If I'm logged in (even if I first logout and then login again) when I click on the button "continue with CAS" then it goes to the ynh user app list instead of asking me to "accept". I tried app.element.io on both Firefox private page and Firefox dev (not private, without any addons). |
Ok, maybe it coule be a crash of the php part. Can you share me the content of you php and nginx log ? |
I could not find anything relevant in
The only error I could find in logs when I repeat the action was in
|
Can you share me the log that you have while do try a login in |
|
So after some (long) investigation I confirm that it's a regression and it's an upstream issue. cf YunoHost/yunohost#2018 One important clarification of how to reproduce this issue is that this happen when the Yunohost portal domain is completely different than the element app domain. So by example we can easily reproduce the issue if we use element from https://app.element.io So the current known workaround is to install on the Yunohost instance the element app and login on matrix from this app. |
I'm having the same issue after upgrading to yunohost 12. Additionally, I'm also getting the following error:
In Safari I was able to login to element with username and password, but with Element app I'm not. |
Hello, Server on small computer at home.
On my side, Synapse and Element are on the same server. When I want to login, Element ask me to "Continue with CAS" I face the same situation with Element or Schildichat application. This is a serious issue for my users as they can't login with new device or new application. |
Well the known solution could be also to apply the related patch of YunoHost/yunohost#2018 manually. and also ask for a merge as quick as possible because it impact a lot of user 😉 |
Thanks @Josue-T for your always quick and sharp answers! |
Well yes it's a bit complicated for the merge because, as you said, doing a review and merging take time and we need somebody which take time for this on his free time. From my point of view the reason why this is not already merged is probably because we make the thing less secure with this PR. Maybe @alexAubin know more why this was not merged for now. So what could help:
|
Could it be the same issue as in searx YunoHost-Apps/searxng_ynh#363 ? |
@Josue-T , I think this issue affect all people using Synapse. Of course, "old" synapse users may not have noticed yet this bug as previously connected devices remain connected. But all synapse users my be affected sooner or later. @alexAubin , is this information enough for you to mobilize dev of Yunohost to consider this merge as an important question? Do you need additional information? All the best to both of you 🤗 |
Hello @Josue-T 👋 Once I have apply a tested the change, I could make a review here and on your merge request to inform on the potential to solve this specific issue and indeed to solve a problem affecting potentially a large number of Yunohost users. |
Yes, I put the process here: YunoHost/yunohost#2018 (comment) |
Hello, Currently, when on Element or Cinny, I click on "connect trough SSO", I am redirected to the portal of Yunohost on the Synapse subdomain. I enter my ID and password but nothing happen and I am still on the connexion page of Yunohost portal on the Synapse subdomain (stlight change of the connexion page). Before moving to Yunohost 12, I was then redirected to Element or Cinny webapp, but now nothing happen. 🙁 FYI, I am still connected with Element webapp to my Synapse account but on a browser connected 2 month ago (without clearing the cache). Similarly, new connexion to Shildichat or Element desktop apps doesn't work. But desktop apps already connected continue to work very well. So Synapse and Element works well 🙂 |
Dis you apply the upstream patch manually ? |
Yes, I applied the patch manually. I edit with nano But I have not seen any change. I will check again tonight if the change is still on the file, but it was. Should have I done other modification? Edit : I checked, modification is done on the ldap_ynhuser.py file (on line 273 and 326) but connection doesn't work 🙁 |
Maybe you need to try with a clean browser session or clean your cookie for your domain because if the previous cookie with the strict rule is still stored on your browser it might be the reason of the issue. |
Cookies are cleaned when I close Firefox. Si it should be fine. I get stuck on the SSO login page, at my synapse subdomain address (synapse.mydomain.com/yunohost/sso/login?r=aHR0cHM6Ly9kZXMu5dW5vaG9zdC8=), not my element subdomain address (yuno.mydomain.com/element)). EDIT :
And for the users having a Matrix account:
Is this correct? (2) I don't see any suspicious log. Only coturn is regularly down but I don't think this is related. And restart always works. Error log says:
|
@Thatoo ans @stepcellwolf, have you found a solution for this critical issue? |
@croulibri I actually did found a solution. Together with the yunohost community via IRC chat support, we fixed the issue. I had an issue with renewing the SSL certificate, and then after I renewed it and forced it I restart the nginx, and I was not able to boot the yunoshot any more as I had some json structure. Let me try if I found the steps I did. Will add them here in this thread. |
Thank you @stepcellwolf |
Dear @Josue-T , (1) I did applied the patch you advised at #497 (comment) This was enough for being able to connect again to my Matrix account 🎉 ... and a huge thanks again for your support again this time 🤗 |
FWIW, I have the same bug with the android app. |
Describe the bug
After migrating to ynh 12, I can't connect to matrix account. When I click on "Continue with CAS", it goes to the ynh user app list only.
Context
Steps to reproduce
Connect to ynh SSO.
Go to app.element.io
Choose synapse server address
Click on "Continue with CAS"
Reach to the user ynh app list screen
Also, if I go on https://domain.tld/_matrix/cas_server.php, then I get a "Bad URL" page.
Expected behavior
Be able to click on continue/accept and be connected to matrix account within Element.
Logs
The text was updated successfully, but these errors were encountered: