-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Change OAuth2 redirect link to relative link #19646
Change OAuth2 redirect link to relative link #19646
Conversation
fix issue with third-party apps like rocket.chat where browser in external window is opened and thus oauth2 login does not work Signed-off-by: Fabian Helm <firlevapz@gmail.com>
Have you tested the change with a Nextcloud 18 instance? You mentioned 16.0.8 in #19400. |
I'm running the server via snap with version 17.0.3 where the problem still persists (and the fix is working), I will try it with nextcloud 18 on a testing instance and then tell you |
Thanks 👍 |
I just tested it with version I also tested the nextcloud desktop client and mobile client and they are both still working with this patch applied. |
I'm a bit puzzled what this solves? |
The rocket.chat desktop client unfortunately automatically opens absolute urls in a new, external browser-window - if it's a relative link, then you continue in the electron app and oauth2 is working as it should. Unfortunately i have no idea, how to adapt the code for this client, and the easiest solution I found for this issue between rocket-chat and nextcloud would be this proposed change here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fine IMO
@nickvergessen @icewind1991 @ChristophWurst sorry to bother you, but it would be great if you could review this one-line-PR to solve the login-troubles with rocket-chat on my nextcloud-instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 🐘
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
May you add this one line change to Milestone 19.0.1? Would be very kind 😊 or is it not possible? |
/backport to stable19 |
Fix #19400
fix issue with third-party apps like rocket.chat
where browser in external window is opened
and thus oauth2 login does not work
Signed-off-by: Fabian Helm firlevapz@gmail.com