• 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 How does the Android app access the backed?

     
    • 0 Vote(s) - 0 Average

    How does the Android app access the backed?

    Wpq
    Offline

    Junior Member

    Posts: 8
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    Country:France
    #1
    2024-10-24, 01:56 PM
    I set up Jellyfin to authenticate through Authelia. This allows family and friends to use their SSO, which they have to go through anyway, as their Jellyfin account. It works perfectly when accessing Jellyfin via the web.

    I am the only one to use the Android app, which does not work with SSO. I am planning to whitelist it in my LAN (so that it does not go though Authelia). To do this, I need a parameter that I can discriminate against.

    My question: what in the way the Android app accesses the Jellyfin backend could be used to tag it as such? The URL it uses? Headers? User agent?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-24, 02:55 PM
    If you're using a reverse proxy, it should log the user agent. The jellyfin app is a web-wrapper and would access the server in the same manner as a browser, so the URLs it uses wouldn't be different enough.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Wpq
    Offline

    Junior Member

    Posts: 8
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    Country:France
    #3
    2024-10-24, 03:03 PM
    > the user agent

    Would you know what it is set to? (I will sniff the traffic otherwise)
    niels
    Offline

    Core Team

    Posts: 248
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #4
    2024-10-24, 03:11 PM
    The mobile Android app has different sources for its network requests:
    - The web interface via the webview
    - The native part via our Kotlin SDK (used for connecting/video player metadata)
    - The native part via our video player
    - The native part via our image loading library

    These 4 options do **not** share the same code for creating their network requests so headers will differ.
    [Image: GitHub%20Sponsors-grey?logo=github]
    Wpq
    Offline

    Junior Member

    Posts: 8
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    Country:France
    #5
    2024-10-24, 03:47 PM
    @niels so you mean that there are no straightforward ways to differentiate traffic from the app from traffic from a web browser?
    niels
    Offline

    Core Team

    Posts: 248
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #6
    2024-10-24, 05:00 PM
    Correct, you should not rely on the HTTP requests to differentiate clients.
    [Image: GitHub%20Sponsors-grey?logo=github]
    Wpq
    Offline

    Junior Member

    Posts: 8
    Threads: 4
    Joined: 2023 Sep
    Reputation: 0
    Country:France
    #7
    2024-10-24, 05:24 PM
    OK thanks.

    I had an epiphany: I just created an alternate URL for the app, which bypasses Authelia and is limited to the LAN. Works great.
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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