GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

    • Social Identity Providers

      • WeChat PC QR Code
      • WeChat PC Mini Program QR Code
      • WeChat Official Account Follow
      • WeChat Mobile
      • APP Launch WeChat Mini Program
      • Huawei
      • Huawei Mobile
      • Honor
      • Xiaomi
      • Xiaomi Mobile
      • Tencent QQ
      • Tencent QQ Mobile
      • Sina Weibo
      • Sina Weibo Mobile
      • Douyin Mobile
      • Kuaishou Mobile
      • GitHub
      • GitHub Mobile
      • Facebook
      • Facebook Mobile
      • Twitter
      • Twitter Mobile
      • Google Web
      • Google Mobile
      • Apple Mobile
      • Apple Web
      • AWS
      • Alipay
      • Slack
      • Slack Mobile
      • Gitee
      • Gitee Mobile
      • GitLab
      • GitLab Mobile
      • Baidu
      • Baidu Mobile
      • Yidun (One-click Login)
      • QingCloud
      • Instagram
      • LinkedIn
      • LinkedIn Mobile
      • Line Mobile
      • Amazon
      • Amazon Mobile
      • OPPO Mobile
    • Account Binding
  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. Connect External Identity Providers (IdP)
  4. /
  5. Social Identity Providers
  6. /
  7. Google Mobile

¶ Google Mobile

Update time: 2025-07-23 07:34:21
Edit

¶ Scenario Introduction

¶ Overview

GenAuth provides developers with a way to quickly jump to Google login to obtain user information in mobile (iOS or Android) applications. Google account access can be completed by simply calling the GenAuth mobile SDK.

¶ Application Scenario

Mobile APP

¶ End User Preview

Pull up the Google page in the mobile application to log in.

¶ Preparation

  • If you don't have a Google account, please go to Google (opens new window) to register.

  • If you don't have a GenAuth console account, please go to GenAuth Console (opens new window) to register a developer account.

¶ Configuration steps

¶ Step 1: Create three OAuth client IDs in Google Open Platform

¶ Web application

  1. Open the Google API Console Credentials (opens new window) console.

  2. On the Credentials page, select CREATE CREDENTIALS->OAuth client ID at the top.

  1. Select Application type as Web application, fill in Name and Authorized redirect URIs (temporarily write a valid address), and click the CREATE button.
  1. After the creation is successful, you can get Your Client ID and Your Client Secret of this application on the next page, record them.

¶ Android

  1. Open the Google API Console Credentials (opens new window) console.

  2. On the Credentials page, select CREATE CREDENTIALS->OAuth client ID at the top.

  3. Select Application type as Android, fill in Name, Package name and SHA-1 certificate fingerprint, and click the CREATE button.

  • You need to log in to your mobile app backend to obtain Package name (Android app package name) and SHA-1 certificate fingerprint (Android app's SHA-1).
  • It takes some time for the settings to take effect after being saved, please wait patiently.
  1. Download and save the JSON file on the viewing page and hand it over to the Android development engineer (for subsequent detailed operations, please refer to Google Mobile Developer Documentation - Android).

¶ iOS

  1. Open the Google API Console Credentials (opens new window) console.

  2. On the Credentials page, select CREATE CREDENTIALS->OAuth client ID at the top.

  3. Select Application type as iOS, fill in Bundle ID, App Store ID and Team ID, and click CREATE button.

Bundle ID and App Store ID

Team ID

  • You can get Bundle ID and App Store ID at Apple Store Connect (opens new window).
  • You can get the Team ID in the Apple Developer Backend (opens new window).
  • It will take some time for the settings to take effect after being saved, please wait patiently.
  1. Download and save the corresponding PLIST file and hand it over to the iOS development engineer (for subsequent detailed operations, please refer to the Google Mobile Developer Documentation - iOS).

¶ Step 2: Configure Google Mobile Login in the GenAuth Console

  1. On the Social Identity Source page of the Atuhing console, click the Create Social Identity Source button to enter the Select Social Identity Source page.
  1. On the Identity Source Management->Social Identity Source->Select Social Identity page of the GenAuth console, click the "Google" identity source card to enter the Google login mode selection page.
  1. Select Google Mobile to enter.
  1. On the Google Mobile page of the GenAuth console, configure the relevant field information.
FieldDescription
Unique ID
  • The unique ID consists of lowercase letters, numbers, and -, and is less than 32 bits long.
  • This is the unique ID of this connection and cannot be modified after setting.
Display NameThis name will be displayed on the button of the terminal user's login interface.
Client IDFill in Your Client ID obtained when Application type is Web application on the Google Open Platform.
Client SecretFill in the Client Secret obtained when Application type is Web application on the Google Open Platform.
Callback URLYou can fill in your business callback address. After the user completes the login, the browser will jump to this address.
Callback addressGoogle valid jump URI. This URL needs to be configured on the Google Open Platform.
Login modeAfter turning on Login only mode, you can only log in to existing accounts, and cannot create new accounts. Please choose carefully.
Account Identity AssociationWhen Account Identity Association is not enabled, a new user is created by default when a user logs in through an identity source; when Account Identity Association is enabled, users can be allowed to log in directly to an existing account through Field Matching or Query Binding.
  1. After the configuration is complete, click the Create or Save button to complete the creation.

After creating the Google identity source on the GenAuth console, you need to configure the callback address to the Authorized redirect URI on the Google Open Platform.

¶ Step 3: Development access


¶ Recommended development access method

SDK

¶ Advantages and disadvantages

Simple operation and maintenance, which is handled by GenAuth. Each user pool has an independent secondary domain name; if you need to embed it in your application, you need to log in using the pop-up mode, that is: after clicking the login button, a window will pop up with the login page hosted by GenAuth, or redirect the browser to the login page hosted by GenAuth.

¶ Detailed access method

  1. Create an application in the GenAuth console. For details, see: How to create an application in GenAuth.

  2. On the created Google identity source connection details page, open and associate an application created in the GenAuth console.

  1. Experience Google third-party login on the login page (as shown in the [end-user preview image](#end-user preview image)).
Previous article: Google Web Next article: Apple Mobile
  • Scenario Introduction
  • Preparation
  • Configuration steps

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.