Create a Google Cloud project
To use Google Cloud Compute APIs with OAuth 2.0, you need a Google Cloud project with the required APIs enabled.
Sign in to Google Cloud
Sign in to your Google Cloud Console.
Create or select a project
Create a new project or select an existing one from the project dropdown at the top of the page.
Enable the required APIs
Enable the Compute Engine API, Cloud Run Admin API, Cloud Functions API, and Artifact Registry API for your project.
- Navigate to APIs & Services > Library.
- Search for and enable Compute Engine API.
- Search for and enable Cloud Run Admin API.
- Search for and enable Cloud Functions API.
- Search for and enable Artifact Registry API.
Configure Google Auth Platform
Before creating OAuth credentials, you must configure Google Auth Platform.
Navigate to Google Auth Platform
In the Google Cloud Console, go to APIs & Services > OAuth consent screen. This will open the Google Auth Platform dashboard.
Start configuration
If this is your first time configuring OAuth, you’ll see an OAuth Overview page. Click Get started to begin the configuration process.
Enter app information
Fill in the required fields for your application.
- App name: Enter a name for your application (e.g., StackOne GCP Compute Integration).
- User support email: Select an email for user inquiries.
- Click Next to continue.
Select audience
Choose the appropriate user type for your application.
- Internal: Only users within your Google Workspace organization can authorize (no app verification required).
- External: Any Google account can authorize (requires app verification for production use).
- Click Next to continue.
Enter contact information
Provide email addresses for Google to notify you about any changes to your project. Click Next to continue.
Configure scopes
In Google Auth Platform, go to Data Access and click Add or Remove Scopes to configure the OAuth scopes your application needs.
Create OAuth 2.0 client credentials
Create OAuth client credentials to authenticate with Google Cloud APIs.
Configure client details
Enter the required information for your OAuth client.
- Name: Enter a name for your OAuth client (e.g., StackOne GCP Compute Integration).
- Under Authorized redirect URIs, click Add URI.
- Redirect URI:
https://api.stackone.com/connect/oauth2/googlecloudcompute/callback - Click Create.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Google Cloud Compute:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Google Cloud Compute
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile