PHOLIODRIVE · GOOGLE AUTH

Google Drive & OAuth

Configure the OAuth project, branding, domain, scope and client for a commercial installation.

Production guide
Do not leave a commercial installation in Testing

Google indicates that test-user authorizations expire seven days after consent. If a refresh token was issued with access_type=offline, that refresh token also expires while the app remains in Testing. Publish the app as In production before issuing the final authorization.

1. Create or select a Google Cloud project

Use a project controlled by the organization or owner that will operate PholioDrive. Enable the Google Drive API in that project.

2. Complete Google Auth Platform → Branding

Configure the application name, support email, logo, developer contact and public app URLs. Google requires an external production app to have a public homepage and Privacy Policy; both must accurately represent the app.

Recommended public URLs
Homepage: https://docs.pholiodev.com/en/pholiodrive/
Privacy: https://docs.pholiodev.com/en/pholiodrive/privacy/
Terms: https://docs.pholiodev.com/en/pholiodrive/terms/

Official reference: Manage OAuth App Branding.

3. Verify the domain

The domain used for the homepage and policies must belong to a domain you control. Verify pholiodev.com in Google Search Console and add it as an Authorized Domain in Google Auth Platform. Google can then use its subdomains and pages.

4. Declare the Drive scope

The current PholioDrive version operates on existing files and folders and can perform administrative actions. It currently requests:

Google Drive scope
https://www.googleapis.com/auth/drive

Google classifies this scope as restricted. For a public app that is not covered by an exception, this type of scope requires restricted-scope verification. Google recommends using the narrowest scope that still supports the required functionality.

Official reference: Choose Google Drive API scopes.

Principle of least privilege

PholioDrive should request only the permissions needed for its visible functionality. If a future version can reduce the scope without breaking the main workflows, that change should be evaluated as a security improvement.

5. Create the OAuth Client

Create a Web application client. Copy the exact redirect URI displayed by PholioDrive → Connection into Authorized redirect URIs.

Do not guess or rewrite the callback: it must match the URI shown by the installation exactly.

6. Save Client ID and Client Secret

Enter both values in PholioDrive. The Client Secret must remain private. The hardened PholioDrive settings export excludes the Client Secret and OAuth tokens.

7. Move the app to In production

In Google Auth Platform → Audience, change the Publishing status from Testing to In production when branding and domain setup are ready.

If you connected PholioDrive before publishing, perform a Reconnect after moving to production so a new authorization is issued outside the Testing lifecycle.

8. Complete Verification Center

For a public app using this scope, review the Branding and Data Access status in Verification Center. The public homepage must clearly identify PholioDrive, describe its functionality and link the same Privacy Policy configured in Google Cloud.

The Privacy Policy must explain how PholioDrive accesses, uses, stores, transfers and deletes Google user data, and it must state compliance with the Google API Services User Data Policy and Limited Use requirements.

Restricted scope and security assessment

Google indicates that apps that store or transmit restricted-scope data on servers may be subject to an additional security assessment. The exact requirement should be confirmed in Verification Center for the deployment model being used.

Official reference: Restricted Scope Verification.

9. Revocation and reconnection

The administrator can disconnect Google Drive from PholioDrive. Access can also be revoked from the Google Account security settings. If Google invalidates the authorization, the hardened PholioDrive version should mark the state as Reconnect required instead of appearing to remain connected.