Set up the OAuth client
1
Create or pick a project
In the Google Cloud console, create a
project for Nuphos (or reuse one) under your Workspace organization.
2
Configure the consent screen
Open Google Auth Platform → Branding and fill in the app name and
support email. Under Audience, choose Internal, or External if
your members use personal Gmail accounts (see
External apps).
3
Enable the APIs
In APIs & Services → Library, enable the Gmail API and the
Google Drive API.
4
Add the scopes
Under Google Auth Platform → Data Access, add these scopes:
https://www.googleapis.com/auth/gmail.modifyhttps://www.googleapis.com/auth/drive
5
Create a Web client
Under Google Auth Platform → Clients, create a client of type
Web application with these Authorized redirect URIs:
https://api.nuphos.ai/personal-credentials/gmail/callbackhttps://api.nuphos.ai/personal-credentials/google-drive/callback
https://api.nuphos.ai with your
backend’s public URL (NUPHOS_PUBLIC_BACKEND_URL).6
Save it in Nuphos
Copy the Client ID and Client secret. In Nuphos, open
Settings → General → Google OAuth client, paste both, and click
Save. Only Administrators can change this.
External apps
Without Google Workspace, or to let accounts outside your organization connect, choose the External user type. Gmail and Drive scopes are restricted, so an External app works differently:- Testing mode. While the app’s publishing status is Testing, only the accounts you add under Audience → Test users (up to 100) can connect. They see an “unverified app” warning, and Google expires their grants after 7 days, so members must reconnect weekly.
- Production. To publish the app, Google requires OAuth app verification for the restricted scopes, including an annual security assessment. Until it is approved, stay in Testing mode.
Connect your account
Each member opens Settings → Personal Credentials and clicks Connect next to Gmail or Google Drive, then approves the request in the browser.- Gmail asks for
gmail.modify: read, label, draft and send mail. - Google Drive asks for
drive: find, read and save files.