Skip to content

Huawei

Scenario Introduction

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

Notes

Step 1: Create a server application on Huawei

Log in to Huawei Developer Alliance Official Website, click Management Center:

On the Management Center page, click Account:

On the Account page, click Apply for Account Service:

Select Server Application, select Create Product and configure Application Callback Address

  • Application callback address: Fill in https://core.genauth.ai/connection/social/{Unique ID}/{User Pool ID}/callback. You need to replace {Unique ID} with the Unique ID filled in the identity source you are creating in GenAuth, and replace {User Pool ID} with your User Pool ID

Finally, click "Submit". After the creation is completed, you need to record the APP ID and APP SECRET, which will be used in the next step.

Step 2: Configure Huawei App Configuration in the GenAuth console

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

2.2 On the "Select Social Identity Source" page, click the "Huawei" card.

2.3 On the "Huawei" configuration page, fill in the relevant field information.

FieldDescription
Unique IDa. The unique ID consists of lowercase letters, numbers, and -, and is less than 32 bits long.
b. This is the unique ID for this connection and cannot be modified after it is set.
Display NameThis name will be displayed on the button on the terminal user's login interface.
APP IDThe Huawei App ID obtained in the previous step.
APP SecretThe Huawei App Secret obtained in the previous step.
Login ModeAfter enabling "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. After enabling "Account Identity Association", users can be allowed to log in directly to an existing account through "Field Matching" or "Query Binding".

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

Step 3: Development Access

  • Recommended development access method: Use a hosted login page

  • Pros and cons description: 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:

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

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

3.3 Click the "Experience Login" button of the GenAuth console application to experience the "Huawei" login in the pop-up login window

Agent infrastructure for identity, memory, and web action.