Use social login authentication
Social login refers to the process of users using social platform identity authentication information to authenticate and log in to third-party applications or websites. For example, people often use personal WeChat, QQ, Weibo and other social accounts to log in to Didi, NetEase Cloud Music, etc. Social login not only helps to simplify the user's login experience on third-party platforms, but also provides a simpler and more convenient way for users to create new accounts on third-party platforms. Whether for ordinary users or enterprises, social login has incomparable advantages.
Social login list
GenAuth currently supports nearly 20 social logins at home and abroad, such as WeChat, GitHub, Sign in with Apple, Alipay, etc. The following is a complete list:
| Social Login Method | Usage Scenario | Documentation |
|---|---|---|
| PC WeChat QR Code | PC Website | |
| WeChat Mobile | Mobile APP | |
| WeChat Web Authorization | WeChat Web Page | |
| WeChat Official Account Scanning | PC Website | |
| WeChat Mini Program | WeChat Mini Program | Documentation |
| WeChat PC Mini Program QR Code | PC Website | |
| WeChat Mini Program App Launch | Mobile APP | |
| Tencent QQ | PC Website | |
| Tencent QQ Mobile | Mobile APP | |
| Sina Weibo | PC Website | |
| Sina Weibo Mobile | Mobile APP | |
| GitHub | PC Website | |
| GitHub Mobile | Mobile APP | |
| PC Website | ||
| Facebook Mobile | Mobile APP | |
| PC Website | ||
| Twitter Mobile | Mobile APP | |
| Google Web | PC Website | |
| Google Mobile | Mobile APP | |
| Apple Web | PC Website | |
| Apple Mobile | Mobile APP | |
| Alipay Web | PC Website | |
| Alipay Mobile | Mobile APP | |
| Slack | PC Website | |
| Slack Mobile | Mobile APP | |
| Gitee | PC Website | |
| GitLab | PC Website | |
| GitLab Mobile | Mobile APP | |
| Baidu | PC Website | |
| Baidu Mobile | Mobile APP | |
| PC Website | ||
| LinkedIn Mobile | Mobile APP | |
| NetEase Yidun (One-click Login) | Mobile APP | |
| QingCloud | PC Website | |
| PC Website | ||
| Douyin Mobile | Mobile APP | |
| Douyin Mini Program | Mobile APP | Documentation |
| Kuaishou Mobile | Mobile APP | |
| Xiaomi Mobile | Mobile APP | |
| Line Mobile | Mobile APP |
Custom social login
GenAuth provides the ability to access custom OAuth2.0 identity providers. If you need to connect to a social login identity source that is not built into GenAuth, you can .
WeChat solution
GenAuth has a complete solution for the WeChat ecosystem. You can view the product introduction and read the Guide to connecting to the WeChat account system.
Choose the appropriate development access method
GenAuth Social login supports four access methods: Using JavaScript SDK, Using embedded login components, Using hosted login pages and Manually calling social login interfaces. Each different access method has its own advantages and disadvantages. You can choose the appropriate method according to your business needs.
Pros and cons comparison
The following is a comparison of the pros and cons of various methods:
| Access method | Advantages | Disadvantages | Recommended |
|---|---|---|---|
| Use JavaScript SDK | Easy access, only a few lines of code. Highest degree of customization. | ||
| Use embedded login component | Easy access, only a few lines of code. You can integrate this component into your application. Relatively high degree of customization | Yes | |
| Use hosted login page | Simple operation and maintenance, which is handled by GenAuth. Each user pool has an independent second-level domain name. | If you need to embed it in 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 login page hosted by GenAuth, or redirect the browser to the login page hosted by GenAuth. | Yes |
| Manually call the social login interface | You need to manually parse the user information from the URL. Access is relatively complicated and troublesome. | Not recommended |
Detailed access method
The following is the detailed access method for each method:
social-loginCode snippet: social-login