Skip to content

[Feature Request] Support login with OIDC #183

Description

@michaelhthomas

Description

Authentication providers like Authelia, Auth0, Authentik, Keycloak, etc. make managing user permissions across selfhosted services much easier.

Desired Behavior

I would like to be able to configure a custom OIDC provider for logins, and have this option appear on the Jellyseer login page. This PR from Overseerr implements support for generic OIDC login. Since OIDC is already supported for Plex SSO, supporting other external authentication services is fairly straightforward.

Additional Context

Here is a screencast from the linked Overseerr PR showing what this feature would look like when implemented.

https://cln.sh/wGbPIdYUKas2QId0cqxw

Code of Conduct

  • I agree to follow Overseerr's Code of Conduct

Activity

  1. changed the title [-]Support login with OIDC[/-] [+][Feature Request] Support login with OIDC[/+] on Jul 9, 2022
  2. michaelhthomas commented on Jul 9, 2022

    @michaelhthomas
    ContributorAuthor

    I'd be happy to try my hand at re-implementing this for Jellyseerr, so long as all are onboard.

  3. fallenbagel commented on Jul 9, 2022

    @fallenbagel
    Member

    I'd be happy to try my hand at re-implementing this for Jellyseerr, so long as all are onboard.

    Any help would be much appreciated c:

  4. added
    enhancement
    on Jul 9, 2022
  5. michaelhthomas commented on Jul 11, 2022

    @michaelhthomas
    ContributorAuthor

    @fallenbagel Would you say it's alright to go ahead and remove the Plex OAuth login stuff in here as well? It's intertwined with the authentication logic a little more than I'd like.

  6. fallenbagel commented on Jul 11, 2022

    @fallenbagel
    Member

    @fallenbagel Would you say it's alright to go ahead and remove the Plex OAuth login stuff in here as well? It's intertwined with the authentication logic a little more than I'd like.

    If the plex OAuth is removed, wouldn't that remove support for plex?

  7. michaelhthomas commented on Jul 11, 2022

    @michaelhthomas
    ContributorAuthor

    Login with Plex, yes. If the goal is to keep that support in place, then I can definitely leave it. I could also see if it's possible to just detangle the Plex login a bit so that it's isolated like the rest of the auth providers.

  8. fallenbagel commented on Jul 11, 2022

    @fallenbagel
    Member

    Login with Plex, yes. If the goal is to keep that support in place, then I can definitely leave it. I could also see if it's possible to just detangle the Plex login a bit so that it's isolated like the rest of the auth providers.

    Yeah the goal is for plex to be supported as well

  9. michaelhthomas commented on Jul 11, 2022

    @michaelhthomas
    ContributorAuthor

    Got it. I'll try separating plex login into its own component so all the login logic isn't on the main Login component

  10. ados8 commented on Oct 8, 2022

    @ados8

    Testing with Authentik and it fails the OIDC login due to exceeded threshold.
    image

    Jellyseerr presents an error to sign in.
    image

    My config is as follows:
    OIDC Issuer URL: https://auth.domain.com/application/o/jellyseerr/
    OIDC Provider Name: Authntik
    OIDC Client ID: generated ID from Authntik

  11. kurokay commented on Nov 13, 2022

    @kurokay

    It would be an awesome feature to add !

  12. largelyinept commented on Nov 28, 2022

    @largelyinept

    Definitely +1 to the interest here! I use Authentik and would love to more easily and granularly secure my *rr stack

  13. fallenbagel commented on Nov 30, 2022

    @fallenbagel
    Member

    Definitely +1 to the interest here! I use Authentik and would love to more easily and granularly secure my *rr stack

    Could you test out the :preview-184 tag. Make sure to not test on your production server

  14. largelyinept commented on Dec 2, 2022

    @largelyinept

    Thanks @fallenbagel! I tested a setup with Authentik and it's worked great!
    Only thing to note is the oidc-authenticated user is shown as type 'local', and the email (rather than username) is used as displayname (not sure if this is easy to change - I don't really mind all that much)
    jellyseerr_oidc

  15. Sapd commented on Feb 16, 2023

    @Sapd

    So I have :preview-184 running with only SSO login since mid of December without any problems. (Also with Authentik)

  16. 64 remaining items

  17. kassarole commented on Mar 25, 2025

    @kassarole

    Gotcha I'm not sure what the issue was but manually creating the table with the SQL you sent fixed it for me. Thanks!

  18. v3DJG6GL commented on Mar 25, 2025

    @v3DJG6GL
    Contributor

    Has someone tried to migrate directly from #184 to #1505 ?
    I've been running this super outdated Jellyseerr version the last 1.5 years and I'd like to try out the latest OIDC PR. But if possible, not loosing all requests and userdata... 🐵

  19. cordlord commented on Mar 25, 2025

    @cordlord

    @v3DJG6GL My recommendation would be to make a copy of the data directory and start up a separate test container using the copied directory to see what happens. You'll probably have to wait a bit for them to push the migration fix to add the extra table, but then you should be good to test.

    I'm sure there will be others doing this, but there's only one way to find out if you don't want to wait.

  20. smdion commented on Mar 25, 2025

    @smdion

    With a brand new database (like after deleting the entire config folder), this should not be an issue. However, I haven't added database migrations to the branch yet, so if you're coming from an existing database, it will not add the new table. If you'd like to add it manually, you can do something like

    CREATE TABLE "linked_accounts" (
    "id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
    "provider" varchar(255) NOT NULL,
    "sub" varchar(255) NOT NULL,
    "username" varchar NOT NULL,
    "userId" integer,
    CONSTRAINT "FK_2c77d2a0c06eeab6e62dc35af64" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE NO ACTION
    )
    but I will be adding the migrations shortly, so it may be better just to hold off until then.

    I can also confirm this works for an existing db.

  21. vutsalsinghal commented on Mar 25, 2025

    @vutsalsinghal

    I can also confirm this works for an existing db.

    It worked for me as well (manually added the SQL above) but getting "Redirect URI Error" with Authentik. Are you using authentik? whats your redirect URI? Its "http://domain.com/login/oidc/callback" for me. Was working with this redirect uri before the update :(

    And I cant downgrade since there was no change in docker image tag preview-OIDC!

    EDIT:

    Anyone else in similar situation, hopefully you still have the old image on your machine! Just use the old image ID to start container (instead of image-name:tag)

  22. McGeaverBeaver commented on Mar 25, 2025

    @McGeaverBeaver

    @vutsalsinghal , This is not required.

    Authentik works just fine, You are indeed using the wrong callback ID...double check it.. What I found is after I did the above table add, I still had issues...

    1. I modified my settings.json to " "mediaServerLogin": true, "
    2. Logged in with plex
    3. Found that OIDC config was not setup in the GUI yet was still in my json file.
    4. Re configured ODIC from the GUI , I set my SLUG manually, YET it still changed it
    5. updated my callback URL for the new slug it set..
      *6) removed redirect uri from authentik and allowed it to auto recreate
    6. closed all windows, opened up and it worked again as expected.
  23. vutsalsinghal commented on Mar 25, 2025

    @vutsalsinghal

    @vutsalsinghal , This is not required.

    Authentik works just fine, You are indeed using the wrong callback ID...double check it.. What I found is after I did the above table add, I still had issues...

    1. I modified my settings.json to " "mediaServerLogin": true, "
    2. Logged in with plex
    3. Found that OIDC config was not setup in the GUI yet was still in my json file.
    4. Re configured ODIC from the GUI , I set my SLUG manually, YET it still changed it
    5. updated my callback URL for the new slug it set..
    6. closed all windows, opened up and it worked again as expected.

    I did setup OIDC from jellyseer UI again but didn't update the slug in authentik. You're right, it changed the slug even though I set it to something else! I'll give it another try by updating the slug in authentik. But is the redirect url endpoint correct http://domain.com/login/oidc/callback ?

  24. smdion commented on Mar 26, 2025

    @smdion

    @vutsalsinghal , This is not required.
    Authentik works just fine, You are indeed using the wrong callback ID...double check it.. What I found is after I did the above table add, I still had issues...

    1. I modified my settings.json to " "mediaServerLogin": true, "
    2. Logged in with plex
    3. Found that OIDC config was not setup in the GUI yet was still in my json file.
    4. Re configured ODIC from the GUI , I set my SLUG manually, YET it still changed it
    5. updated my callback URL for the new slug it set..
    6. closed all windows, opened up and it worked again as expected.

    I did setup OIDC from jellyseer UI again but didn't update the slug in authentik. You're right, it changed the slug even though I set it to something else! I'll give it another try by updating the slug in authentik. But is the redirect url endpoint correct http://domain.com/login/oidc/callback ?

    The redirect URI changed as well. In authentik you can just remove what you have there in the provider and it will add the correct one. If not, this is what mine is

    https://%jellyseerrsubdomain%.%domain%.com/login/oidc/callback/%providername%

    EDIT:
    Users will have to sign in with a local account and then link in the OIDC account. The following error in database:

    Failed OIDC login attempt {"cause":"Unknown error","ip":"10.10.10.61","errorMessage":"SQLITE_CONSTRAINT: UNIQUE constraint failed: user.email"}

    I assume this will be fixed with the migration, but just FYI for you manual people.

  25. dominicrico commented on Mar 27, 2025

    @dominicrico

    Found another bug while testing this behind a revers proxy. The redirect url is not set correct if using this with ssl/https. The redirect url is build with http not https even though I set an application url from the general tab. It should even use the application url from the settings or the one im currently on to create the provider.

  26. vutsalsinghal commented on Mar 27, 2025

    @vutsalsinghal

    Found another bug while testing this behind a revers proxy. The redirect url is not set correct if using this with ssl/https. The redirect url is build with http not https even though I set an application url from the general tab. It should even use the application url from the settings or the one im currently on to create the provider.

    That's not true for me. I'm using Authentik + nginx with letsEncrypt certs setup. As @smdion mentioned on 03/25/25, the redirect url is automatically set to something like https://domain.com/login/oidc/callback/custom-slug.

  27. dominicrico commented on Mar 27, 2025

    @dominicrico

    Found another bug while testing this behind a revers proxy. The redirect url is not set correct if using this with ssl/https. The redirect url is build with http not https even though I set an application url from the general tab. It should even use the application url from the settings or the one im currently on to create the provider.

    That's not true for me. I'm using Authentik + nginx with letsEncrypt certs setup. As @smdion mentioned on 03/25/25, the redirect url is automatically set to something like https://domain.com/login/oidc/callback/custom-slug.

    Weird, I have exactly the same setup but the redirect uri is build with http ...

  28. gauthier-th commented on Mar 27, 2025

    @gauthier-th
    Member

    Please use the dedicated discussion

  29. marked Add OIDC #2252 as a duplicate of this issue on Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions