lamarios / clipious

Invidious client for android
GNU Affero General Public License v3.0
964 stars 32 forks source link

Cannot login by token if Invidious server requires HTTP Basic Auth #598

Open kkwpsi opened 1 month ago

kkwpsi commented 1 month ago

Describe the bug Option to login by token is unavailable if HTTP Basic Auth settings is provided. Only login method "by cookie" is available.

To Reproduce Steps to reproduce the behavior:

  1. Add new server with HTTP Basic Authetication

Expected behavior "Login with token" method should be available even if the Invidious server requires HTTP Basic authentication.

Screenshots none

Smartphone (please complete the following information):

Additional context The error is somewhat related to this issue: https://github.com/iv-org/invidious/issues/4200. I ran into this problem when logging in via cookie. In this case I couldn't see the channel page. After temporarily disabling HTTP Auth and logging in via token, the error with reading the channel page stopped appearing.

lamarios commented 1 month ago

It's not possible to have both. Both are the same header with different values so one would overwrite the other.

kkwpsi commented 1 month ago

This is not a problem as long as cookie logins provide the same permissions as token logins. Since I use HTTP Basic Auth, my users cannot login via token even once.

lamarios commented 1 month ago

Unfortunately. There's not much I can do here. If the cookie isn't functioning properly, you'll need to raise an issue on invidious.