rclone / rclone-webui-react

A full fledged UI for the rclone cloud sync tool
MIT License
1.27k stars 161 forks source link

Allow oauth passthrough #106

Open dantebarba opened 4 years ago

dantebarba commented 4 years ago

Hi.

I'm currently running webui inside a docker container. I use treafik + traefik-oauth for authentication, so I usually disable password protection on any kind of backend, because they are already protected by the reverse proxy. Unfortunately there is no way of disabling authentication, or at least providing a header to authenticate. It would be great if it could be added.

negative0 commented 4 years ago

Hi.

rclone api uses basic auth for authentication, you can specify the username password in the base 64 encoded authorization header which could be passed by traefik. So traefik will authenticate for you.

Is it possible? I have not worked much with traefik

dantebarba commented 4 years ago

Yup, ended up doing it that way. But it would be cool if the option for reverse proxy auth was added.

negative0 commented 4 years ago

I think --rc-no-auth is the flag you are looking for. Let me know if it works for your usecase