A single endpoint to manage authentication for all Google Workspace APIs. Generate tokens manually or route them directly to your app via webhooks.
Follow these steps to programmatically integrate Open Auth Bridge into your own application's backend.
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"
}
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
Once the user grants permission, Open Auth Bridge will automatically POST the tokens to the URL you specified in step 1.
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"
}