DocsSign inInstall Kastel
Connectors · Google

A Google application, that belongs to you.

To read your Drive (and, on self-host, your Gmail), Kastel publishes no shared application. You create your own, in your own Google Workspace, and your admin can cut it at any moment without asking anyone.

Why an app of your own, never Kastel's

Kastel publishes no shared Google application: the application is yours, in Internal mode inside your own Workspace, and you are the one who revokes it. If asked who accesses your email or your files, the answer is: nobody - access goes through an application you own.

01

Create a Google Cloud project

Google Cloud Console, project selector, "New project". Any project in your organization works; a recognizable name like kastel-connectors helps you find it again.

03

Enable the APIs

API Library: enable "Google Drive API" (and "Gmail API" if relevant) for the project.

04

Create the OAuth client

Credentials > Create credentials > OAuth client ID, type "Web application". The redirect URI depends on your mode:

ModeRedirect URI
ManagedThe one shown in your console's enterprise Sources - copy it exactly, character for character
Self-hosthttp://127.0.0.1:8765/connect/gdrive/callback and, if you also use Gmail, http://127.0.0.1:8765/connect/gmail/callback (the local listeners of the connect command), or the addresses you configured

Then copy the client ID (it ends in .apps.googleusercontent.com) and the client secret.

05

Hand the pair to Kastel

ModeWhere
ManagedPaste the client ID and secret into enterprise Sources. Kastel verifies them live against Google before accepting them, encrypts them inside your instance, and never shows the secret again.
Self-hostEnvironment variables, named in kastel.config.yaml - never the value itself in that file (client_id_env, client_secret_env).
Revocation - the point of the whole design

Your admin can cut access at any moment, without contacting anyone: Google Admin console > Security > API controls > App access control, or deleting the client ID in Google Cloud - every token the app minted dies with it. Each person can also revoke their own grant at myaccount.google.com/permissions.

A question about your Google application?

Write to us: a question sent by email gets an answer the same day. Our partner integrator network can also help.

Contact usSee the integrator program