Skip to main content

How to integrate Google Artifact Registry Account?

Overview

To authenticate and use the Google Artifact Registry, you will need:

  • Client ID
  • Client Secret
  • Location (Region)

Step 1: Login to Google Cloud Console

  1. Go to Google Cloud Console
  2. Sign in with the Google account that has access to your project.

Step 2: Enable Required APIs

You must enable the following APIs for your project:

  1. Artifact Registry API
    Navigate to: Artifact Registry API → Click Enable

  2. Cloud Resource Manager API
    Required to list project metadata.
    Navigate to: Cloud Resource Manager API → Click Enable

  1. Go to APIs & Services > OAuth consent screen
  2. Select External and click Create
  3. Fill the form:
    • App Name: e.g., Artifact App
    • User Support Email: your Google account email
    • Developer Contact Info: your email
  4. Click Save and Continue through all steps
  5. Under Test Users, add your own Gmail or Workspace account

Step 4: Create OAuth 2.0 Credentials

  1. Go to APIs & Services > Credentials
  2. Click + Create CredentialsOAuth client ID
  3. Select Web Application
  4. Fill the form:
    • Name: e.g., Artifact Client
    • Authorized Redirect URIs:
      • http://api.unizo.ai/callback/oauth (for Unizo app)
      • http://localhost:5000/oauth2callback (for testing)
  5. Click Create

Step 5: Get Client ID and Client Secret

After creation, a dialog will show:

  • Client ID → Use this in your application

  • Client Secret → Use this securely in your application

    💡 You can download the credentials JSON file for future use.

Step 6: Get Artifact Registry Locations (Regions)

In the Google Cloud Console:

  • Go to Artifact Registry
  • Click Create Repository you are interested in
  • View the location from the top of breadcrumb. Example regions: us-central1, europe-west1, asia-east1