Overview
Tencent QQ social login is a secure way for users to log in to third-party applications or websites using their Tencent QQ account as the identity source. By configuring and enabling Tencent QQ's social login on Authing, you can quickly obtain basic open information of Tencent QQ through Authing and help users achieve password-free login.
Application Scenarios
This feature is suitable for creating website applications, mobile applications, and other platforms that require user authentication.
Precautions
- If you don't have an account on the QQ Internet platform, please register a developer account at QQ Internet Center.
- Applications can only be created after approval.
- If you don't have an Authing console account, please register a developer account at Authing Console.
Step 1: Create a Website Application on the QQ Open Platform
- Go to the QQ Connect Center and create a website application.
- Click your personal QQ avatar at the top left of the page to complete the registration and initiate an audit, and then click "Website Application" and "Create Application" to create a website application that uses QQ to log in.
- During the application creation process, you need to configure the allowed callback addresses. Please use the following settings:
https://core.authing.cn/connection/social/qq/:userPoolId/callback
. Replace:userPoolId
with the user pool ID of your Authing console.
Step 2: Configure Tencent QQ in the Authing Console
- Click the "Create Connection" button on the "Social" page of the Authing console to enter the "Choosing a Social Identity Source" page.
- Click the "Tencent QQ" identity source button on the "Create Connection" – "Choosing a Social Identity Source" page of the Authing console to enter the "Tencent QQ Login Mode" page.
- Configure the relevant field information on the "Social" – "Tencent QQ" page of the Authing console.
Field/Function | Description |
---|---|
Unique Identifier | The unique identifier consists of lowercase letters, numbers, and -, and the length is less than 32 bits. This is the unique identifier of this connection and cannot be modified after setting. |
Display Name | This name will be displayed on buttons on the end user's login screen. |
APP ID | QQ application number, which needs to be obtained on the QQ open platform. |
APP Key | QQ application key, which needs to be obtained on the QQ open platform. |
Callback URL | You can fill in your business callback address. After the user completes the login, the browser will jump to this address. |
Scopes | By default, Authing will only apply to the user for authorization of basic user information (such as avatar, nickname, etc.), if you need more advanced permissions, you can check the corresponding options. |
Redirect URL | QQ valid redirect URI. This URL needs to be configured on the QQ open platform. |
Login Mode | After "Login Only Mode" is enabled, you can only log in to an existing account and cannot create a new account. Please choose carefully. |
Account Identity Association | When "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", you can allow users to directly log in to existing accounts through "Field Matching" or "Asking for Binding". Select the association method and click "Create" or "Save" button to complete the creation. |
Step 3: Development Access
Recommended development access method: use the hosted login page
Description of advantages and disadvantages:
- Simple operation and maintenance, and Authing is responsible for operation and maintenance.
- Each user pool has an independent second-level domain name; if you need to embed it into your application, you need to use the pop-up mode to log in.
Detailed access method:
- Create an application in the Authing console. For details, see: How to create an application in Authing.
- Open and associate an application created in the Authing console with a QQ identity source connection.
- Experience QQ third-party login on the login page.
Copyright
Copyright © 2013-2024 Tencent Cloud. All Rights Reserved.