Commit Graph

8897 Commits

Author SHA1 Message Date
Georges-Antoine Assi
332fca94c1 Merge pull request #3102 from HydroSulphide/fix-oauth-token-expiry-and-refresh-rotation
Fix OAuth token expiry and implement refresh token rotation
2026-03-10 09:35:32 -04:00
Georges-Antoine Assi
f0e5abadc9 fix tests again 2026-03-10 09:23:12 -04:00
Georges-Antoine Assi
f6eb686559 fix tests 2026-03-10 08:38:43 -04:00
HydroSulphide
b9ea937373 Merge branch 'master' into fix-oauth-token-expiry-and-refresh-rotation 2026-03-10 08:51:44 +01:00
HydroSulphide
fd788684b9 fix: TOCTOU race condition allows duplicate refresh token use 2026-03-10 08:38:32 +01:00
HydroSulphide
02336974a6 Implemented greptile suggestions 2026-03-10 08:04:07 +01:00
HydroSulphide
8758cb31b7 Tried to fix everything the bot complained about and the failed pytests.
Three tests were also implemented to check initial implementation that now invalidates expired access and refresh tokens and also rotating refresh tokens.

Since I introduced wrapper functions for create_oauth_token to distinguish between access and refresh token there is no need to set the token type in the data dict, since the type is now enforced in the wrapper functions create_access_token and create_refresh_token.

By convention I renamed create_oauth_token to _create_oauth_token as it is considered a private helper function now.
2026-03-10 07:22:02 +01:00
Georges-Antoine Assi
fae1e120c2 Merge pull request #3107 from rommapp/copilot/add-oidc-rp-initiated-logout
Implement OIDC RP-Initiated Logout (end-session endpoint)
2026-03-09 23:12:37 -04:00
Georges-Antoine Assi
b9e3ae6be3 add perm to job itself 2026-03-09 23:09:05 -04:00
Georges-Antoine Assi
30db3725f4 add comment at the beginnig 2026-03-09 23:02:52 -04:00
Georges-Antoine Assi
bdd5f4b078 add PR label to trigger preview build 2026-03-09 22:59:31 -04:00
Georges-Antoine Assi
11c16e92bd run fmt 2026-03-09 22:53:30 -04:00
copilot-swe-agent[bot]
980360805b Fix test: use async_cache instead of sync_cache to inject OIDC session data
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-10 02:39:36 +00:00
Georges-Antoine Assi
9e31430c88 run fmt 2026-03-09 22:32:54 -04:00
Georges-Antoine Assi
b7ef28632c Merge pull request #3106 from rommapp/copilot/fix-auto-library-scan-issue
Fix: filesystem watcher and scheduled scan skip when no metadata sources configured
2026-03-09 22:13:32 -04:00
Georges-Antoine Assi
0c1ea31856 retrun still 2026-03-09 22:06:29 -04:00
copilot-swe-agent[bot]
4992731265 Address code review feedback: log OIDC metadata errors, remove redundant import
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-10 02:01:59 +00:00
copilot-swe-agent[bot]
5e1a4bf35e Fix: automatic library scan blocked when no metadata sources configured
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-10 01:56:47 +00:00
copilot-swe-agent[bot]
dda77737af Implement OIDC RP-Initiated Logout (end-session endpoint)
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-10 01:56:47 +00:00
copilot-swe-agent[bot]
6d7dd9905d Initial plan 2026-03-10 01:49:44 +00:00
copilot-swe-agent[bot]
abc7138974 Initial plan 2026-03-10 01:49:33 +00:00
Georges-Antoine Assi
fa94e959b4 Merge pull request #3104 from cciollaro/fix/scan-deep-watch-performance
perf(scan): replace deep watch with computed to reduce reactivity overhead
2026-03-09 21:45:19 -04:00
cc
6936a089b8 perf(scan): replace deep watch with computed to reduce reactivity overhead
During a scan with large collections, the scan page becomes slow or
unresponsive. The watch on scanningPlatforms with { deep: true } was
firing on every ROM addition, causing Vue to deeply traverse all nested
platform and ROM data each time.

The watch's only job is deciding which panels are open. A panel should
open when a platform first receives ROMs — after that, its open/closed
state doesn't need to change regardless of how many more ROMs arrive.

Replace with a computed that maps each platform to a boolean
(roms.length > 0), so the watch only fires on that one meaningful
transition per platform. The ROM list inside each panel continues to
update reactively as normal — this change only affects the panel
open/close logic.

Note: This PR was written with AI assistance (Claude Code).
2026-03-09 20:38:54 -04:00
Georges-Antoine Assi
da09f6c81c Merge pull request #3100 from rommapp/copilot/fix-multifile-download-m3u
Fix M3U generation to exclude raw .bin tracks when .cue files are present
2026-03-09 18:44:47 -04:00
Georges-Antoine Assi
fe0191dab7 Merge pull request #3103 from pacnpal/master
Fix OIDC login role downgrading for users without claims
2026-03-09 18:21:57 -04:00
Georges-Antoine Assi
8a76391935 do code once 2026-03-09 18:21:01 -04:00
Georges-Antoine Assi
9a9d15da75 Merge pull request #3099 from rommapp/copilot/fix-oidc-login-google
Add OIDC_SERVER_METADATA_URL to support providers with non-standard discovery URLs (e.g. Google)
2026-03-09 18:19:34 -04:00
pacnpal
cf6f69ba9f Merge pull request #1 from pacnpal/copilot/fix-admin-role-claim-issues
Fix OIDC login downgrading existing user roles when provider sends no role claims
2026-03-09 14:35:19 -04:00
copilot-swe-agent[bot]
2a7c86e304 Fix OIDC login downgrading existing user roles when no claims provided
Co-authored-by: pacnpal <183241239+pacnpal@users.noreply.github.com>
2026-03-09 18:26:49 +00:00
copilot-swe-agent[bot]
ce60cdd76e Initial plan 2026-03-09 18:19:21 +00:00
copilot-swe-agent[bot]
b07e647c40 Fix M3U generation to only include .cue files when present in bin/cue ROM packages
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-09 17:42:32 +00:00
copilot-swe-agent[bot]
ff1c8b680e Fix OIDC login with Google by adding OIDC_SERVER_METADATA_URL config option
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-09 17:39:43 +00:00
copilot-swe-agent[bot]
3f76ef86de Initial plan 2026-03-09 17:39:20 +00:00
copilot-swe-agent[bot]
3a7ef20045 Initial plan 2026-03-09 17:35:17 +00:00
HydroSulphide
ad09babce8 fix: catch http exception on code 401 so api call with expired access token doesn't lead to internal server error 2026-03-09 18:29:28 +01:00
HydroSulphide
41f64eb42b fix: oauth token invalidation on expiration date and rotating refresh token 2026-03-09 17:03:29 +01:00
Georges-Antoine Assi
e651cfcf4a Merge pull request #3097 from rommapp/copilot/add-filter-results-number
Show filtered ROM count in the gallery AppBar and filter drawer
2026-03-09 09:20:59 -04:00
Georges-Antoine Assi
8e0ebad956 Merge pull request #3098 from Drarox/master
Add more plateforms to cover styles
2026-03-09 09:20:42 -04:00
Georges-Antoine Assi
b2abf776f2 hide on 0 2026-03-09 09:18:04 -04:00
Georges-Antoine Assi
3286fd970e ill do it myself 2026-03-09 09:13:14 -04:00
Yannick
9e529caa74 Add more plateforms 2026-03-09 11:25:59 +01:00
copilot-swe-agent[bot]
5a2fb7a395 feat: move ROM count to filter drawer and AppBar chip, remove from button
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-09 03:20:58 +00:00
copilot-swe-agent[bot]
462b3aaf9e feat: show filtered ROM count below the filter button in gallery AppBar
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-09 03:07:46 +00:00
copilot-swe-agent[bot]
0211b9900d Initial plan 2026-03-09 03:05:23 +00:00
Georges-Antoine Assi
115fad85e9 Merge pull request #3093 from rommapp/copilot/add-click-to-zoom-feature
feat: Click to zoom game cover image
2026-03-08 23:03:16 -04:00
Georges-Antoine Assi
b7d6edc756 Merge pull request #3094 from rommapp/copilot/feature-configurable-invite-token-expiration
Make invite token expiration configurable
2026-03-08 23:01:30 -04:00
copilot-swe-agent[bot]
89c482c7fa fix: only show zoom button on non-clickable covers (when pointerOnHover is false)
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-03-09 02:59:43 +00:00
Georges-Antoine Assi
84ff48e725 run fmt 2026-03-08 22:56:19 -04:00
Georges-Antoine Assi
e2ece6b938 run fmt 2026-03-08 22:54:58 -04:00
Georges-Antoine Assi
422b967ce5 Merge pull request #3096 from rommapp/access-token-exp-seconds
Switch ACCESS_TOKEN_EXPIRE_MINUTES to SECONDS
2026-03-08 22:53:39 -04:00