desktop: [Bug]: Desktop app is unable to login using gitlab
Before you file a bug report
- I have checked the issue tracker and have not found an issue that matches the one I’m filing.
- This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
- This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
- This issue doesn’t reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
- This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
- I have read the contribution guidelines.
Mattermost Desktop Version
5.3.1
Operating System
Windows 11 x64
Mattermost Server Version
Mattermost Version: 7.9.1 Database Schema Version: 104 Database: postgres
Steps to reproduce
- Be logged out of GitLab in Mattermost
- Open Mattermost desktop app
- Click the GitLab login button
- White screen comes up and cannot log in via GitLab
Expected behavior
When the user is logged out of GitLab Mattermost and they open Mattermost desktop app and click the GitLab login button you should be directed to the GitLab login page so the user can log into Mattermost via a GitLab user.
Observed behavior
A white screen appears and the use is unable to log in.
Log Output
[2023-05-27 18:34:47.632] [debug] DownloadsManager.init { 'this.json': {}, validatedJSON: {} }
[2023-05-27 18:34:47.638] [debug] DownloadsManager.saveAll
[2023-05-27 18:34:47.640] [debug] DownloadsManager.checkForDeletedFiles
[2023-05-27 18:34:49.273] [warn] couldn't show serverName Chat___TAB_MESSAGING, not ready
[2023-05-27 18:34:49.307] [warn] Failed to set new language en-US
[2023-05-27 18:34:49.308] [warn] Failed to set new language AU
[2023-05-27 18:34:49.366] [info] config.autostart has been configured: true
[2023-05-27 18:34:49.594] [info] Can't send reload-config, will retry
[2023-05-27 18:34:49.625] [info] config.autostart has been configured: true
[2023-05-27 18:34:49.722] [info] Can't send maximized_change, will retry
[2023-05-27 18:34:52.138] [info] hide back button
[2023-05-27 18:34:52.215] [info] hide back button
[2023-05-27 18:34:52.289] [info] hide back button
[2023-05-27 18:34:54.200] [info] Checking for update
[2023-05-27 18:34:54.327] [info] serverName Chat___TAB_MESSAGING timeout expired will show the browserview
[2023-05-27 18:34:54.420] [info] serverName Chat___TAB_FOCALBOARD timeout expired will show the browserview
[2023-05-27 18:34:54.466] [info] serverName Chat___TAB_PLAYBOOKS timeout expired will show the browserview
[2023-05-27 18:34:55.685] [warn] Ignoring certificate for unmatched origin https://serverName.com:8050, will not trust
[2023-05-27 18:34:57.127] [info] Update for version 5.3.1 is not available (latest version: 5.3.1, downgrade is disallowed).
Additional Information
This works when using chrome and older versions of the desktop app. If you install an older version such as 5.1 then log in via GitLab, uninstall 5.1 and reinstall 5.3.1 because you are already signed in when you open Mattermost desktop app you can get pass the GitLab login.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 16 (3 by maintainers)
BTW I can confirm this still happens with the latest nightly build (20230927)
The server is on the always on “latest”, so it updates itself. Looking further into the issue it appears that the time-limit of the standalone-app is too short: https://challenges.cloudflare.com/ is used by gitlab to check for human activity. The main cause is the timeout set in the Mattermost Desktop App. When I copy the link from the Mattermost Desktop Client log and paste it into the browser, I finally get the Gitlab login page after 10 seconds. The Mattermost Desktop Client app only returns the error “handleSessionExpired false”.
So is there a way to give the desktop app more time?
Me and my colleagues have the same issue; it would be great if you could give this more attention. It makes the desktop app completely unusable at the moment.
I think @martinantonmueller was onto the right path with his comment: https://github.com/mattermost/desktop/issues/2740#issuecomment-1614244099
@devinbinnie I tried to figure out which timeout is too short but I don’t know the internals of the desktop app enough to navigate. Would you be able to point to the likely place for this so that I could test and propose a PR to solve this sooner rather than later?
Hi, is there any update on this?
This continues to be a problem.
What’s changed for me now is that instead of a blank screen, I get a page that appears to be loading a captcha, which intermittently flashes for a split second (too fast to interact with it or even take a screenshot).
While having the developer tools open, the page will eventually stop loading and show a blue button that reads “Verify you are human”. However, as soon as the app’s window is hovered, the button disappears and the page restarts the captcha loading process.