Skip to content

feat: implement OpenID Connect provider settings; add E2E tests - #12

Open
michaelhthomas wants to merge 34 commits into
feat/oidc-login-basicfrom
feat/oidc-login-remaining
Open

michaelhthomas wants to merge 34 commits into
feat/oidc-login-basicfrom
feat/oidc-login-remaining

Conversation

@michaelhthomas

Copy link
Copy Markdown
Owner

Description

Follow up to seerr-team#3241 which adds additional functionality: a settings UI for configuring OpenID Connect, end to end tests against a mock provider, and updated documentation.

How Has This Been Tested?

This PR adds end to end test coverage. I also tested it manually with several common OpenID Connect providers.

Screenshots / Logs (if applicable)

image image image

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

michaelhthomas and others added 29 commits November 7, 2026 10:57
This improves CSRF protection somewhat, and also improves compatibilty
with Authelia and Authentik, which both have strange handling of the
`state` parameter either beyond or non-compliant with the specification.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
laurisvb and others added 2 commits November 7, 2026 11:08
cookie-parser was initialized with settings.clientId (the Plex client
UUID), but express-session signs connect.sid with settings.sessionSecret.
The secrets differ, so cookie-parser's signature check on connect.sid
fails, the cookie is dropped from req.cookies, and the OpenAPI validator
rejects every authenticated request with "cookie 'connect.sid' required"
even though the browser is sending it correctly.

This also matches the signing secret used by the OIDC code-verifier and
state cookies that are stored via res.cookie(..., {signed: true}), which
read back through req.signedCookies during the callback.
This resolves an issue where, if you reached your user's linked accounts
settings from Users -> Edit, then the redirect URL would be
`/users/{id}/settings/linked-accounts`, which does not match the
documented redirect URLs.
@michaelhthomas
michaelhthomas force-pushed the feat/oidc-login-remaining branch from 73b0cb3 to 3f9bbb6 Compare November 7, 2026 18:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants