Rclone serve auth bypass to download content

What is the problem you are having with rclone?

While downloading content serving from rclone serve, it asks for auth

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.0

  • os/version: debian bookworm/sid (64 bit)
  • os/kernel: 5.18.10-76051810-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.3
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone serve http --user jmcaesar --pass jmcaesar --addr 0.0.0.0:8080 my-gdrive:

The rclone config contents with secrets removed.

[my-gdrive]
type = drive
client_id = 
client_secret = 
scope = drive
token = 
team_drive = 

Hello. The "rclone serve http" is working though, but how can I bypass the auth I provided while downloading the content? To make downloads work I had to put in the credentials in the URL like http://user:pass@123.456.789.120:8080

How can I bypass putting the creds for downloading my files once I pass the basic auth popup?

So you've configured auth but you don't want auth? You'd remove that and make it no auth I suppose.

I want auth to login, but while downloading (with wget or cURL) I want to prevent inputting the credentials. Is that possible?

You've configured credentials.

You don't want wget or curl to use credentials.

One of those two have to change right?

Either you have authentication or you don't.

What would you want wget or curl to do?

I want auth, as I said, but want the links to be directly downloadable with wget. What is "realm"? Can it do what I want to achieve?

You'd pass auth with:

--user=USERNAME and --password=PASSWORD

for wget.

Ok. But what is realm? I saw it in the auth section of rclone serve documentation but I don't understand what it does.

See:

http - What is the "realm" in basic authentication - Stack Overflow

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.