Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2.0 Compatibility for Docker / Headless Runtimes #7634

Open
coanghel opened this issue Feb 14, 2024 · 0 comments · May be fixed by #7635
Open

OAuth 2.0 Compatibility for Docker / Headless Runtimes #7634

coanghel opened this issue Feb 14, 2024 · 0 comments · May be fixed by #7635

Comments

@coanghel
Copy link

The associated forum post URL from https://forum.rclone.org

https://forum.rclone.org/t/fully-automated-in-docker/44204

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:

  1. 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.
  2. 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.
coanghel added a commit to coanghel/docker-oauth-rclone that referenced this issue Feb 14, 2024
For Docker environments, need to bind to 0.0.0.0 instead of localhost
For rclone served by reverse proxy, should be able to override redirrect

Fixes rclone#7634
coanghel added a commit to coanghel/docker-oauth-rclone that referenced this issue Feb 14, 2024
For Docker environments, need to bind to 0.0.0.0 instead of localhost
For rclone served by reverse proxy, should be able to override redirrect

Fixes rclone#7634
coanghel added a commit to coanghel/docker-oauth-rclone that referenced this issue Feb 14, 2024
For Docker environments, need to bind to 0.0.0.0 instead of localhost
For rclone served by reverse proxy, should be able to override redirrect

Fixes rclone#7634
@coanghel coanghel linked a pull request Feb 14, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant