SeaDrive: Cannot login via SSO in Linux (Gnome/Wayland)

Hi,

I am testing using SeaDrive with the latest Debian Linux using Gnome. After i install the latest version of SeaDrive for Linux, in the Add Account screen i select Single Sign On. This opens a smaller window where i type in the address of the Seafile server and then a small browser window appear that has a blank white screen. This is supposed to show the SSO webpage but for some unknown reason on Gnome (or Wayland) built-in web browser cannot load the SSO page, thus i am not able to pass the login.

This works in windows, which i guess has a different underlying browser which loads the page.

Is there a way to bypass that or use an alternative way to login via SSO in Gnome?

I have also tested with a KDE environment with the same result as they both use Wayland as their backend.

Thanks

You can set the below option to true in seahub_settings.py:

CLIENT_SSO_VIA_LOCAL_BROWSER = True

This will ask the client to use local browser on your computer.

Refer to seahub_settings.py - Seafile Admin Manual

Thank you, that works.

This doesn’t work on Ubuntu 24.04..
It works on windows though

It may be due to some special problem on your computer. You can have a look at seadrive-gui.log. Which version of SeaDrive do you use?

Hi! I have a similar issue. On PopOS 24.04. the in-app browser does not seem to work: the auth URL itself appears correct and I can log in successfully in the browser, but the in-app browser is just stuck and never loads anything. Meanwhile, if I set the LOCAL_BROWSER flag as suggested above, the client just tells me “Failed to get client SSO link”. On Windows and MacOS, I have no login issues.

Any suggestion how to debug this? Where can I find the seadrive-gui.log?

Which version of Seafile server do you use? Please post the client log when you meet the error.

Hi! Sorry for the late reply. The server version is 11.0.13… Now that I think of it, that’s probably quite old. I’ll try to upgrade it as soon as I can, and hopefully that should help… Thank you for the response.