当前位置:网站首页>Introduction to wechat authorized login third-party app applet method

Introduction to wechat authorized login third-party app applet method

2022-07-24 08:15:00 m0_ seventy-two million six hundred and twenty-two thousand six

What is third-party authorized login

The third party namely Use an account frequently used in other programs to quickly log in to another account , Thus, login can be completed directly without registration . commonly All are It makes it easier for users to register or browse the login page Of .

Why Third party login

The service provider wants users to register , Users are too lazy to fill in all kinds of information at the time of registration ( Mainly to ensure the uniqueness of users , Various user names have been occupied , Password format restrictions ). And like wechat , QQ, Among the apps that almost everyone will install, such as Weibo, users will definitely have registered in one of them . Prove the uniqueness of the user in the registered application .

The essence of third-party login is to obtain the information provided by the third-party application at the time of authorization, which represents the uniqueness of the user in the third-party application openid. And will openid Stored in local storage controlled by third-party services .

Take wechat applet as an example : The login function of wechat applet will generally pass  OpenID or UnionID As a unique identifier , Connect with the account system of the applet service , Complete the construction and design of user account system .

however Third party login authorization is a very annoying thing for many developers , Each platform should have its own permissions , It's very troublesome in practice .

For example, before FinClip  Developed a small program , It is found that the login to realize wechat authorization can only be realized through App Custom in API Inject wx.login To transform the service end . But the process is complicated , Several attempts to succeed .

 

How to realize fast third-party login

FinClip Recently launched a solution , As follows :

First step : Sign in FinClip Management backstage .

The second step : stay “ Applet management ” find : My applet >> Applet details >> Third party management .

 

The third step : Will be made by FinClip The designed applet authorization page is added to the existing applet code package and submitted for review , The official authorization page has been directly placed in GitHub, You can get it directly GitHub - finogeeks/wechat-auth-page: FinClip Wechat login authorization page

Step four : Next step , Click add login Association on the management background page , Fill in... As prompted “ Wechat applet is original ID”、“ Wechat applet nickname and avatar authorization page path ”、“ Path to the authorization page of the applet mobile number ”.

Simply speaking , Just log in  FinClip Management background , Click on 【 Applet - details - Third party management - Associated wechat applet login 】, Enter the wechat applet original ID, After the corresponding authorization page uploaded in the wechat applet , Bind to complete .

This is it. FinClip The platform provides users with convenient solutions , From the developer's point of view, let yourself App The applet can realize the third-party wechat authorized login method , Very convenient and easy to use . Different from the previous authorization methods, the ability of small programs to reuse wechat login can be realized without moving the code .

More details can be found at FinClip The authorities understand .

原网站

版权声明
本文为[m0_ seventy-two million six hundred and twenty-two thousand six]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207221751219270.html