Get OAuth Credentials for a Desktop Application

Learn how to get OAuth credentials for a desktop application and use them to generate tokens.

This lesson covers how to create your OAuth 2.0 client for a desktop application. This provides you with OAuth credentials that enable you to generate the authorization code. Moreover, you'll also learn how to generate tokens using the authorization code.

Create the OAuth 2.0 client

Step 1: From the left menu bar, click the "Credentials" option.

Step 2: On the "Credentials" page, click "CREATE CREDENTIALS" from the top menu bar. Select the "OAuth client ID" option from the dropdown menu. This time, you're redirected to the "Create OAuth client ID" page where you're asked to enter the following information.

  • Application type: Select the "Desktop app" option from the dropdown menu.
  • Name: Enter the name for your OAuth 2.0 client. This name is only used to identify the client in the console and won’t be shown to the end users.

Step 3: Click the "CREATE" button. You’ve successfully created your OAuth 2.0 client. Now, you see your "Client ID" and "Client Secret" keys on the screen in a pop-up window.

Step 4: Click the "DOWNLOAD JSON" button. This downloads a JSON file on your local computer.

Get hands-on with 1200+ tech skills courses.