Bug Report: Google Drive OAuth credentials are lost after settings reload (v1.10) #10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Environment:
Garlic SaveMgr: v1.10
PS5 Firmware: 12.20 (slim)
Boot Method: Y2JB Autoloader
Google Drive API enabled
OAuth Client Type: Web Application
OAuth credentials generated using Google OAuth Playground
Problem:
Google Drive authentication works correctly immediately after entering the OAuth credentials, but fails after Garlic reloads the Settings page.
The following error is displayed:
Drive access test failed:
OAuth Client Secret is required
Steps to Reproduce:
Open Settings.
Select Google Drive as the provider.
Enter:
OAuth Client ID
OAuth Client Secret
Refresh Token
Access Token
Folder ID
Click TEST DRIVE ACCESS.
Result:
✅ Test succeeds (green).
Without changing any credentials, navigate to another page (Applications/Saves).
Click Cloud Backup on any save or simply return to Settings.
Result:
Cloud Backup fails and Garlic reports:
OAuth Client Secret is required
The same behavior also occurs after clicking Save Settings.
Expected Result:
OAuth credentials should remain valid after navigating between pages or after pressing Save Settings.
Cloud Backup should continue to work without requiring the credentials to be entered again.
Additional Information:
Google Drive API is correctly enabled.
OAuth Client ID and Client Secret are valid.
Google OAuth Playground successfully generates both an Access Token and a Refresh Token using the same credentials.
Folder ID is valid.
TEST DRIVE ACCESS succeeds immediately after entering the credentials.
The issue only appears after Garlic reloads the Settings page or attempts to reuse the stored configuration.
I can reproduce this issue 100% consistently on my setup.
I am having the same issue.
It seems the json is storing all the Oauth info but only 'OAuth Client ID' is being read . the other three setting seem to be read from the actual setting text boxes which change upon saving. Either that or there is an error in the way the other data is being stored
I can replicate the issue like this:
Enter all the oauth info
Click 'Test Drive Access'
Success
Click 'Save Settings' last three Oauth text boxes change to stars
Go to 'Browse'
Check 'All'
Click 'Cloud'
Bulk item failed: OAuth Client Secret is required
I then went back to the settings page re-entered the last three oauth boxes
and without hitting any buttons or switching tabs it immediately started to process and upload to my drive folder
Google Drive upload complete: 1Mqh-ocZbFlm-ZcmLSNANT9Z8t0Hi08Ke
9:54:12 AMBulk queue finished: 16 ok, 4 failed
the 4 failures were before I reentered the oauth info
Saving or switching tabs reverts to a non working status.
11.6 digital
I first tried this on v1.12 and it still happens on v1.13