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. GitHub

¶ Github

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

¶ Scenario Introduction

  • Overview: Github social login allows users to log in to third-party applications or websites securely using Github as the identity source. Configure and enable Github social login in GenAuth to quickly obtain Github's basic open information and help users log in without passwords.
  • Application scenario: PC website
  • Terminal user preview image:

¶ Notes

  • If you do not have a Github account, please go to GitHub (opens new window) to register a developer account first.
  • Follow the GitHub documentation (opens new window) instructions to create a GitHub OAuth application and record the application's Client ID and Client Secret.
  • If you don't have a GenAuth console account, please go to the GenAuth console (opens new window) to register a developer account.

¶ Step 1: Create an OAuth application in Github

  • In the upper-right corner of any Github page, click your profile photo, and then click Settings.

  • In the left column, click <> Developer Settings.

  • In the left sidebar, click OAuth Applications.

  • Click New OAuth App.

  • In "Application name", enter a name for your application.

  • In Homepage URL, enter the full URL of your application's website.

  • In Authorization callback URL, enter the callback URL for your application.

During the application creation process, you need to configure the allowed callback address. Please use the following settings: https://core.genauth.ai/connection/social/<Unique Identifier>/<USERPOOL_ID>/callback. You need to replace <Unique Identifier> with your Unique Identifier and <USERPOOL_ID> with your User Pool ID

¶ Step 2: Configure Github in the GenAuth console

2.1 Please click the "Create Social Identity Source" button on the "Social Identity Source" page of the GenAuth console to enter the "Select Social Identity Source" page.

2.2 Please go to the GenAuth console's "Social Identity Source" - "Select Social Identity Source" page, click the "Github" identity source button to enter the "Github Login Mode" page.

2.3 Please go to the GenAuth console's "Social Identity Source" - "Github" page to configure the relevant field information.

Field/FunctionDescription
Unique IDa. The unique ID consists of lowercase letters, numbers, and -, and is less than 32 bits long. b. 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 end user's login interface.
Client IDGithub ID, which needs to be obtained on Github.
Client secretsGithub key, which needs to be obtained on Github.
Callback URLYou can fill in your business callback address. After the user completes the login, the browser will jump to this address.
ScopesBy default, GenAuth will only request authorization for basic user information (such as avatar, nickname, etc.) from the user. If you need more advanced permissions, you can check the corresponding options.
Callback URLGithub valid jump URI. This URL needs to be configured on Github.
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 turned on, a new user is created by default when the user logs in through the identity source. After turning on "Account Identity Association", users can log in directly to existing accounts through "Field Matching" or "Query Binding".

After configuration is complete, click the "Create" or "Save" button to complete the creation.

After creating the Github identity source on the GenAuth console, you need to configure the callback address to the Authorization callback URL on Github.

¶ Step 3: Development Access

  • Recommended Development Access Method: Use Hosted Login Page

  • Pros and Cons Description: Simple operation and maintenance, GenAuth is responsible for operation and maintenance. Each user pool has an independent secondary domain name; if you need to embed it into your application, you need to use the pop-up mode to log in, that is: after clicking the login button, a window will pop up with the content of the GenAuth hosted login page, or redirect the browser to the GenAuth hosted login page.

  • Detailed access method:

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

    3.2 On the created Github identity source connection details page, open and associate an application created in the GenAuth console

3.3 Experience Github third-party login on the login page

Previous article: Kuaishou Mobile Next article: GitHub Mobile
  • Scenario Introduction
  • Notes
  • Step 1: Create an OAuth application in Github
  • Step 2: Configure Github in the GenAuth console
  • Step 3: Development Access

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.