would it be possible to set/use authorization tokens to limit who can upload? #108

Closed
opened 2026-01-19 18:28:59 +00:00 by michael · 5 comments
Owner

Originally created by @andrewzah on GitHub.

I want to create an instance to let some people upload, but only if they pass an authorization token. This is different than the basic auth handler, which doesn't make sense for multiple people.

This could be an array of strings, statically set in the config.

Originally created by @andrewzah on GitHub. I want to create an instance to let some people upload, but only if they pass an authorization token. This is different than the basic auth handler, which doesn't make sense for multiple people. This could be an array of strings, statically set in the config.
Author
Owner

@paolafrancesca commented on GitHub:

there's the option to ask for an http basic authorization:

http-auth-user | user for basic http auth on upload |   | HTTP_AUTH_USER
http-auth-pass | pass for basic http auth on upload |   | HTTP_AUTH_PASS

@paolafrancesca commented on GitHub: there's the option to ask for an http basic authorization: ``` http-auth-user | user for basic http auth on upload |   | HTTP_AUTH_USER http-auth-pass | pass for basic http auth on upload |   | HTTP_AUTH_PASS ```
Author
Owner

@andrewzah commented on GitHub:

Is it possible to set multiple? Ideally I’d like to set a token per person in case it needs to be revoked or changed.

@andrewzah commented on GitHub: Is it possible to set multiple? Ideally I’d like to set a token per person in case it needs to be revoked or changed.
Author
Owner

@paolafrancesca commented on GitHub:

@andrewzah see #537

@paolafrancesca commented on GitHub: @andrewzah see #537
Author
Owner

@paolafrancesca commented on GitHub:

@andrewzah
it's not possible to set multiple credentials: I will look into in ad an --http-auth-htpasswd param so that the credentials are read from an htpasswd file

@paolafrancesca commented on GitHub: @andrewzah it's not possible to set multiple credentials: I will look into in ad an `--http-auth-htpasswd` param so that the credentials are read from an htpasswd file
Author
Owner

@paolafrancesca commented on GitHub:

I will look into in ad an --http-auth-htpasswd param so that the credentials are read from an htpasswd file

I will work on it as soon I'll have a little more time

@paolafrancesca commented on GitHub: > I will look into in ad an `--http-auth-htpasswd` param so that the credentials are read from an htpasswd file I will work on it as soon I'll have a little more time
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#108