System Operational

Your Centralized Google OAuth Bridge.

A single endpoint to manage authentication for all Google Workspace APIs. Generate tokens manually or route them directly to your app via webhooks.

Token Generator Tool

API Endpoints

GET /start-auth/{service} Redirect user to Google consent for a specific service
GET /oauth_callback Google callback — exchanges code for tokens
POST /refresh Renew an expired access token using a refresh token
GET /terms & /privacy Legal pages for Google app verification

Available Services

/start-auth/driveDrive
/start-auth/gmailGmail
/start-auth/calendarCalendar
/start-auth/docsDocs
/start-auth/sheetsSheets
/start-auth/slidesSlides
/start-auth/formsForms
/start-auth/chatChat
/start-auth/contactsContacts
/start-auth/tasksTasks
/start-auth/adminWorkspace Admin
/start-auth/allAll Services

Integration Guide

Follow these steps to programmatically integrate Open Auth Bridge into your own application's backend.

1

Build the state payload

Create a JSON object with your internal user ID u and your webhook routing URL r.

{
  "u": "user_123",
  "r": "https://myapp.com/api/save_tokens"
}
2

Redirect the user

Base64 encode the JSON payload and append it to the Open Auth Bridge start URL. Redirect your user here.

GET http://gauth.arshman.me/start-auth/drive?state=BASE64_STRING
3

Receive tokens via Webhook

Once the user grants permission, Open Auth Bridge will automatically POST the tokens to the URL you specified in step 1.

4

Refresh expired tokens

When the access token expires, hit the refresh endpoint to get a new one.

POST http://gauth.arshman.me/refresh
Content-Type: application/json

{
  "refresh_token": "your_refresh_token"
}