## Google Forms integration Integrating Google Forms with Frontegg allows your application to read, create, and update Google Forms forms and retrieve form responses — all through Frontegg's integration layer using Google OAuth 2.0. Prerequisites - A Google account with access to [Google Cloud Console](https://console.cloud.google.com/) - A Google Cloud project (you can create one during setup) ### Enable the Google Forms API #### Step 1: Open the Google Forms API in the API library Go to the [Google Forms API](https://console.cloud.google.com/apis/library/forms.googleapis.com) page in the Google Cloud Console. Select your project from the top navigation, then click **Enable** if the API is not yet enabled. If you see **Manage** and **API Enabled**, the API is already active. ![Google Forms API page in Google Cloud Console](/assets/google-forms-1.a088e358556d06b18f8b6688a6b68207e952297fa71bb9da2d5030be8c7cf9dd.1ce25488.png) ### Create an OAuth client #### Step 2: Go to the Credentials page In the left sidebar, navigate to **APIs & Services** → **Credentials**. Click **Create credentials**. ![Credentials page with Create credentials button highlighted](/assets/google-forms-2.c2df67c0d530bd6e19d6f6da8c48dfa8d34d46ad27b1c954343a38125884858c.1ce25488.png) #### Step 3: Select OAuth client ID From the dropdown, select **OAuth client ID**. ![Create credentials dropdown with OAuth client ID highlighted](/assets/google-forms-3.0aacff56c41129dd552ff89723f49e66a1883a4d7a72f9e5685743a7f5eef51f.1ce25488.png) #### Step 4: Configure the OAuth client On the **Create OAuth client ID** page: 1. Set **Application type** to **Web application**. 2. Enter a name for the client (for example, `Frontegg Google Forms Integration`). 3. Under **Authorized redirect URIs**, click **Add URI** and add both of the following: - `https://YOUR_MCP_GATEWAY_URL/integration-callback` Click **Create**. ![OAuth client form with name and redirect URIs filled in](/assets/google-forms-4.fa1b9c22a9a69c123397f4365615d808f45d8600d53fc199ec684bb64102feb0.1ce25488.png) #### Step 5: Copy your Client ID and Client Secret After clicking **Create**, a dialog displays your **Client ID** and **Client Secret** — copy both values and store them securely. Save your Client Secret now The Client Secret is only shown once in this dialog. After you close it, you cannot retrieve it again — you can only create a new secret. ![OAuth client created dialog showing Client ID and blurred Client Secret](/assets/google-forms-5.43476eb5f4f0402d8b5d3d8bd5c390660f7eb44f0b45ffe08db1daa212f20cfe.1ce25488.png) ### Copy your credentials #### Step 6: View the new client in the credentials list After closing the dialog, your new client appears at the top of the **OAuth 2.0 Client IDs** list on the Credentials page. ![Credentials page showing the new Frontegg Google Forms Integration client](/assets/google-forms-6.cf2b421508f87862d37ed953922cf26301e9b5043fcec668c479fb42dd0f2de1.1ce25488.png) #### Step 7: View Client ID in the client detail page Click the client name to open its detail page. You can view and copy the **Client ID** at any time from the **Additional information** section. ![OAuth client detail page showing Client ID in the Additional information section](/assets/google-forms-7.444fb9c81c8943cb859a11841b508867b269a3de5cd99e6dfb65198a6339436e.1ce25488.png) ### Configure the Frontegg portal Once you have your **Client ID** and **Client Secret**, enter them in the Frontegg portal: 1. Open the **Frontegg portal** and navigate to [ENVIRONMENT] → Integrations → Google Forms. 2. Enter the **Client ID** and **Client Secret** in the corresponding fields. 3. Select the required **scopes**: | Scope | Description | | --- | --- | | `https://www.googleapis.com/auth/forms.body.readonly` | Read-only access to Google Forms | | `https://www.googleapis.com/auth/forms.body` | Read and write access to Google Forms | | `https://www.googleapis.com/auth/forms.responses.readonly` | Read-only access to form responses | 1. Click **Save**. Keep your credentials secure Never share or commit your Client Secret to version control. ### Additional resources - [Google Forms API documentation](https://developers.google.com/forms/api/reference/rest) - [Google Cloud Console](https://console.cloud.google.com/) - [Setting up OAuth 2.0](https://developers.google.com/identity/protocols/oauth2/) - [How to get your Redirect URL](/agen-for-work/connectors/redirect-url)