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

Authentication during file upload #153

Closed
francisminu opened this issue May 21, 2019 · 2 comments
Closed

Authentication during file upload #153

francisminu opened this issue May 21, 2019 · 2 comments
Labels

Comments

@francisminu
Copy link

Hi,
We have a requirement where we need to upload a Zip file to a URL location. The issue is that a username/password has to be provided.
Is there any way to add in authentication to the upload feature?

Thanks,
Minu

@Acconut
Copy link
Member

Acconut commented May 23, 2019

Yes, you can add a proxy in front of your tus server which inspects the Authorization header and validates that it has the proper rights to upload a ZIP file. To set the Authorization header you can use the headers option for tus-js-client's tus.Upload. What exact value the Authorization header should have depends on your application and authentication model but that's a rough sketch how you can make it work.

@Acconut
Copy link
Member

Acconut commented Jul 22, 2019

Closing this issue due to inactivity. Feel free to leave a comment if you want to continue the discussion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants