-
Notifications
You must be signed in to change notification settings - Fork 71
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
Auth fails with Mattermost Desktop 4.7.0 with "Prevented desktop from navigating to" #80
Comments
Hi, Thank you for using Mattermost-LDAP and for sharing your investigation in this detailed issue. I confirm the latest Mattermost Desktop client (version 4.7) is expecting a restricted pool of URL for the Oauth process, and deny custom URLs, with the error At this moment, your work around, rewriting URLs to expose Oauth on expected URLs, is the best way to bypass the restriction. Note that in the last point, the file to adapt is Besides, On Nginx, to rewrite these URLs, you can use the following code :
To patch the Demo, these lines should be added at line 90 in the I will work on this issue as soon as possible to create a clean patch based on your work around. Your help is welcome, feel free to start a PR. Thank you again for your help. |
I followed the Docker installation guide and came across this problem. It seems like 1dda144 has broken Apache, because it's missing the rewrite from |
Yes, my last commit has broken the Docker installation. I am very sorry. I start to work on it last week but, I did not have the time to finish it. I hope I will find some time tomorrow to finish this change, but I am a little bit busy these days. For the moment, if you want to use Apache, checkout commit 5d0b0a0. However, the Apache implementation does not work with the Mattermost desktop version >= 4.7. Else, you can adapt the demo to use Mattermost-LDAP with Nginx, which is working with Mattermost desktop version >= 4.7. Since rewriting URL is necessary, I am thinking of abandoning the Apache implementation in favor of the Nginx one, because I am more comfortable with Nginx. I will keep you inform, Regards |
We should document this setting in BareMetal.md. I was getting an error for access_token not found. |
Describe the bug
Starting in Mattermost Desktop 4.7.0, there appears to be a limited set of approved oauth URL regexes that the UI will accept. The current oauth urls fail the regex check, resulting in
Prevented desktop from navigating to ....
This works fine in Chrome and Safari.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Form should be submitted
Screenshots
Project (please complete the following information):
Desktop (please complete the following information):
Workaround
I was able to work around this by rewriting
index.php
to look like one of the approved custom login url strings:.htaccess
:index.php
line 33 toheader('Location: access_token');
The text was updated successfully, but these errors were encountered: