-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth): replace hardcoded OAuth endpoints with OIDC Discovery (#57)
* docs: update OIDC redirect URL path * fix(auth): replace hardcoded OAuth endpoints with OIDC Discovery * fix(auth): remove redundant userinfo HTTP request Previously, we required OIDC providers to support userInfo endpoints, which created unnecessary configuration burden for users (especially Authentik). Since we only need to validate the token, we now skip the userInfo request entirely and use the session data we already have. * feat(web): improve auth state handling - Add isChecking state to prevent concurrent auth checks - Remove debounce function as it's no longer needed - Improve error handling and auth state management * fix(web): fix plex timeout cleanup in useServiceData Capture timeout ref value when effect runs to prevent potential race conditions during cleanup. This ensures we're cleaning up the correct Plex session polling timeout. * feat(auth): remove hardcoded OIDC endpoint fallbacks Remove fallback endpoint logic to strictly follow the OpenID Connect spec. Improve error messaging by providing a link to the official discovery specification. * fix: tests
- Loading branch information
Showing
10 changed files
with
386 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.