> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to register your own Google Classroom OAuth app

> Register an OAuth app with Google and connect it to Nango for Google Classroom

This guide shows you how to register your own app with Google Cloud to obtain your OAuth credentials (client ID & secret). These are required to let your users grant your app access to their Google Classroom data.

> [!NOTE]
>
> Apps used outside your own Google Workspace organization need Google's app verification to go live with Classroom scopes.
>
> [Follow our guide](https://nango.dev/docs/api-integrations/google-shared/google-security-review) to get approved as fast as possible.

**1. Create a Google Cloud account**

If you don't already have one, sign up for a [Google Cloud account](https://console.cloud.google.com/). Creating a project and an OAuth client is free.

To test as teachers and students, Google recommends a Google Workspace for Education demo domain (a domain named `gedu.demo.<your domain>`). See [Classroom prerequisites](https://developers.google.com/workspace/classroom/guides/onboarding/prerequisites).

**2. Create a new project**

1. Go to the [Google Cloud Console](https://console.cloud.google.com/).
2. Click the project dropdown at the top left of the page, then click **New Project**.
3. Enter a **Project Name**, choose a **Location**, and click **Create**.
4. Select the new project from the project dropdown.

**3. Enable the Google Classroom API**

1. Go to the [API Library](https://console.cloud.google.com/apis/library) in the Google Cloud Console.
2. Search for **Google Classroom API**, select it, then click **Enable**.

**4. Configure the OAuth consent screen**

1. Go to **Menu** > **Google Auth platform** > **Branding** and click **Get started**.
2. Fill in the app name and user support email, then click **Next**.
3. Select the **Audience**:
   * **Internal**: only users in your Google Workspace organization
   * **External**: any Google user
4. Enter your contact email, agree to the Google API Services: User Data Policy, and click **Create**.
5. If you chose **External**, go to **Audience** and add test users under **Test users**.

**5. Add the Classroom scopes**

1. Go to **Google Auth platform** > **Data Access** and click **Add or Remove Scopes**.
2. Add the [Classroom scopes](https://developers.google.com/workspace/classroom/guides/auth) your integration needs, for example `https://www.googleapis.com/auth/classroom.courses.readonly` or `https://www.googleapis.com/auth/classroom.rosters.readonly`, then click **Save**.
3. Add the same scopes to your integration in Nango.

**6. Create the OAuth client**

1. Go to **Google Auth platform** > [Clients](https://console.developers.google.com/auth/clients) and click **Create Client**.
2. Set **Application type** to **Web application** and enter a name.
3. Under **Authorized redirect URIs**, click **Add URI** and enter `https://api.nango.dev/oauth/callback` (or your own [custom callback URL](https://nango.dev/docs/guides/auth/setup.md#custom-oauth-callback-url-optional)).
4. Click **Create**.
5. Copy the **Client ID** and **Client secret**. You'll need them when you configure your integration in Nango.

**7. Verify and publish your app**

Classroom scopes are sensitive. While your app is in testing, users can continue past the "This app isn't verified" warning. Before users outside your organization connect, go to **Google Auth platform** > **Audience**, click **Publish app**, and complete Google's app verification.

[Follow our guide](https://nango.dev/docs/api-integrations/google-shared/google-security-review) to prepare and pass as quickly as possible.

**8. Next**

Follow the [*Quickstart*](https://nango.dev/docs/getting-started/quickstart.md).

For more details, see [Google's OAuth 2.0 for web server applications](https://developers.google.com/identity/protocols/oauth2/web-server).

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.