jellyfin / Swiftfin

Native Jellyfin Client for iOS and tvOS
Mozilla Public License 2.0
2.32k stars 265 forks source link

401 Unauthorized user #660

Closed sam-harry closed 1 year ago

sam-harry commented 1 year ago

I've been testing the recently released Swiftfin app (thank you!) but I am unable to login to my server. My steps to reproduce are:

  1. Add my jellyfin server. My server is located by the app and recognizes the server name as well as login options.
  2. Enter the credentials of any login user.

The login is rejected with the error "401 unauthorized user" as in the screenshot below. I have triple checked my passwords (and even created a test user with empty password) however I am unable to login.

swiftfin_login_failure

This behavior on occurs only on the swiftfin app: I can login and play media with the web app, jellyfin app, and finamp app. This behavior was mostly tested on my iPhone SE (2nd Gen, iOS 16.2) but also occurred on my Apple TV HD (4th Gen, tvOS 16.1).

On my Jellyfin 10.8.8 server (Debian 11 on x86, apt packages, nginx from a subdomain) the logs show the message:

[INF] AuthenticationScheme: "CustomAuthentication" was challenged.

for each failed login attempt.

Any advice to resolve this would be much appreciated.

Application version

1.0.0 (79)

Where did you install the app from?

App Store

Device information

iPhone SE (2nd Generation)

OS version

16.2

Jellyfin server version

10.8.8

LePips commented 1 year ago

Make sure that you put the correct http/https scheme when adding your server.

sam-harry commented 1 year ago

Solved my issues, thank you for the fast response.

JoeMansour2003 commented 4 months ago

I have this exact problem but only for my admin account. All my other accounts work fine I've also verified that it's using HTTP and not https.