• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Help with authentication provided by reverse proxy

     
    • 0 Vote(s) - 0 Average

    Help with authentication provided by reverse proxy

    jose1711
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:Slovakia
    #1
    2024-11-03, 08:49 PM
    Hello,

    following https://blog.sjain.dev/caddy-sso/ I started to migrate my services behind Caddy reverse proxy with a SSO configured. For Jellyfin I did something like this (Caddyfile):

    Code:
    {
    ..
      security {
            authorization policy admin_policy {
              set auth url https://portal.mydomain.com
              allow roles authp/admin
        }
      }
    }
    jellyfin.mydomain.com {
      authorize with admin_policy
      reverse_proxy http://localhost:8096
    }


    When accessing https://jellyfin.mydomain.com I am redirected to https://portal.mydomain.com where I am queried for credentials (configured inside Caddy's local store) and once validated I am redirected back and presented with Jellyfin login window. Here I need to log in once more.

    Is there a way to tell Jellyfin - that a user foo is a valid user and his/her identity has been proven already? I saw several questions floating on the forums/github but could not find a definitive answer whether this is supported or not.

    Thanks, j
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 243
    Threads: 0
    Joined: 2023 Jun
    Reputation: 17
    Country:United States
    #2
    2024-11-04, 05:02 AM
    You would need to use something like the SSO plugin. https://github.com/9p4/jellyfin-plugin-sso
    jose1711
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:Slovakia
    #3
    2024-11-05, 01:30 PM
    This would be too much, I am looking for a header authentication but it seems this is not yet supported (as per https://features.jellyfin.org/posts/471/...entication)
    jose1711
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:Slovakia
    #4
    2024-11-09, 12:09 PM
    Eventually I used Caddy with Authelia (https://www.authelia.com/integration/ope.../jellyfin/) and SSO plugin you mentioned.
    Duvel
    Offline

    Member

    Posts: 69
    Threads: 9
    Joined: 2023 Jul
    Reputation: 3
    Country:Belgium
    #5
    2025-03-19, 09:41 AM (This post was last modified: 2025-03-19, 09:43 AM by Duvel. Edited 1 time in total.)
    (2024-11-05, 01:30 PM)jose1711 Wrote: This would be too much, I am looking for a header authentication but it seems this is not yet supported (as per https://features.jellyfin.org/posts/471/...entication)

    @TheDreadPirate could you share a bit of info about Proxy Header Authentication feature?

    Is it currently even considered by the team? If yes, any ETA ??? if no, why??

    My current setup (like many) is LDAP plugin + Authentik. And I use caddy for the reverse proxy. Mostly all my exposed services work with a single login page (Authentik) and then the user straight connect automatically on everything (including user creation). Only for Jellyfin Web my users have to login twice : once in Authentik and once in Jellyfin. Thats really annoying.
    niels
    Offline

    Core Team

    Posts: 246
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #6
    2025-03-19, 10:16 AM
    No there are no plans to support custom headers for authorization as this is unlikely to work with our native clients.
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode