You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OAuth 2.0 Compatibility for Docker / Headless Runtimes #7634
What is your current rclone version (output from rclone version)?
1.65.1
What problem are you are trying to solve?
rclone cannot complete an OAuth 2.0 authentication when running headless or in docker for two main reasons:
In Docker, the default bind of the OAuth callback listener to localhost does not allow network connection to outside of the container. You must bind to 0.0.0.0 when inside a Docker container.
Generic to headless mode, something (a reverse proxy) needs to pass the callback back to rclone and it's specific port. This is only possible if rclone uses a redirect URL which matches the reverse proxy.
How do you think rclone should be changed to solve that?
Add global config options for both the callback listener address and redirect URL.
How to use GitHub
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
FROM golang AS builder
RUN git clone --depth=1 https://github.com/rclone/rclone.git
RUN sed -i 's/server := newAuthServer(opt, bindAddress, state, authURL)/server := newAuthServer(opt, "0.0.0.0:53682", state, authURL)/' \
./rclone/lib/oauthutil/oauthutil.go
RUN \
cd rclone && \
CGO_ENABLED=0 \
make
RUN /go/bin/rclone version
Activity
coanghel commentedon Jun 25, 2024
Hi @ncw any update here?
werty1st commentedon Sep 16, 2024
In the meantime you can use: