Open linsui opened 4 years ago
There is a problem with the authentication scheme currently being used.
Is there a plan to make a change for this? I would like to hide the GUI behind a proxy and I use the proxy for all my authentication so I bind just to localhost (it's for home use only anyway) and want to use no passwords for this.
i second @animosity22
I have the same problem, I can't log in to webgui because it asks for login and password, but none has been registered.
I can confirm that the problem is caused by wrong usage of authKey
in local storage.
When you first run rclone rcd -vv --rc-web-gui
, the generated random password is written into authKey
.
BUT if you run rclone rcd -vv --rc-web-gui
again, the authKey
won't be updated with new generated random password, so you keep getting "401" error and have no chance to login.
The solution is delete the authKey
in your browser manually.
eg: the authKey
saved was: Z3VpOnR6cWF5eC04WnF5R1BOYVRIT3pCbHc=
But rclone rcd
wants: Z3VpOmhzeEFCOE5SRWJ0aTlzU1lhMzUyOFE=
2020/11/25 15:35:20 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "rcd" "-vv" "--rc-web-gui"]
2020/11/25 15:35:20 NOTICE: Web GUI exists. Update skipped.
2020/11/25 15:35:20 INFO : No username specified. Using default username: gui
2020/11/25 15:35:20 INFO : No password specified. Using random password: tzqayx-8ZqyGPNaTHOzBlw
2020/11/25 15:35:20 NOTICE: Serving Web GUI
2020/11/25 15:35:20 INFO : Using --user gui --pass XXXX as authenticated user
2020/11/25 15:35:20 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/11/25 15:35:20 DEBUG : login_token "Z3VpOnR6cWF5eC04WnF5R1BOYVRIT3pCbHc="
2020/11/25 15:35:21 INFO : /core/version: 127.0.0.1:64417: Unauthorized request from gui
2020/11/25 15:35:21 INFO : /core/stats: 127.0.0.1:64418: Unauthorized request from gui
2020/11/25 15:35:21 INFO : /core/stats: 127.0.0.1:64419: Unauthorized request from gui
2020/11/25 15:35:21 INFO : /core/bwlimit: 127.0.0.1:64420: Unauthorized request from gui
2020/11/25 15:35:26 INFO : /core/stats: 127.0.0.1:64429: Unauthorized request from gui
2020/11/25 15:35:26 INFO : /core/stats: 127.0.0.1:64430: Unauthorized request from gui
It seems that the commit https://github.com/rclone/rclone-webui-react/commit/e7b5bc02e51019b84b7314b9d963607c5c948a4c fixed the bug, but hasn't been released yet.
Windows10, Firefox
I can't login without inputing username and the random password. But if I run
rclone rcd --rc-web-gui --rc-user <a username> --rc-pass <a password>
I can login directly.