Skip to main content
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.
Apps used outside your own Google Workspace organization need Google’s app verification to go live with Classroom scopes.Follow our guide 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. 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.
2

Create a new project

  1. Go to the Google Cloud Console.
  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 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 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 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).
  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 to prepare and pass as quickly as possible.
8

Next

Follow the Quickstart.
For more details, see Google’s OAuth 2.0 for web server applications.