giantpinkrobots / varia

Download manager based on aria2
https://giantpinkrobots.github.io/varia/
Mozilla Public License 2.0
270 stars 25 forks source link

Authorization failed #68

Open lapor-kris opened 4 months ago

lapor-kris commented 4 months ago

First, thanks for the app. I cannot download anything from Nextcloud server. I use several Nextcloud servers, but I cannot download anything from them via the app. I get Authorization failed. Is this a bug or is it not possible to implement?

Thanks

giantpinkrobots commented 4 months ago

Hi. Varia does support Basic Auth. Can you add your Nextcloud username and password into the Authentication section in Preferences? It should work then.

lapor-kris commented 4 months ago

Thanks for the tip. I tried with Authentication, but I still get Authorization failed.

giantpinkrobots commented 4 months ago

Are you using an app password?

lapor-kris commented 2 months ago

Sorry for late reply. No, I am using username and password for my Nextcloud instance. What exactly is an app password? Password for app Varia? Thanks

giantpinkrobots commented 2 months ago

App passwords are passwords you can create in the settings page in Nextcloud for individual use cases. It's something you have to do if you're using two factor authentication.

lapor-kris commented 2 months ago

Thank you for clarifying it. No, I don't use the two factor authentication.

giantpinkrobots commented 2 months ago

Then it seems the basic auth support is not enough.

I'm actually currently experimenting with cookies.txt support in Varia. This way you can export your cookies from your browser (using something like this) and import that file to Varia. As long as the server can authenticate through the cookies, basic auth won't be needed. This means Varia can use any download link from any cloud provider as long as the user was logged onto it.

I think this feature would be great for your use case.