lamarios/clipious

Cannot login by token if Invidious server requires HTTP Basic Auth

kkwpsi opened this issue · 3 comments

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):

  • Device: Samsung S23
  • OS: Android 14
  • Version [e.g. 1.21.2]

Additional context
The error is somewhat related to this issue: iv-org/invidious#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.

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

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.

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.