Home WeChat Applet Mini Program Development What is the difference between mini program login and authorization?

What is the difference between mini program login and authorization?

Mar 27, 2020 am 10:23 AM
different Applets Authorize Log in

What is the difference between mini program login and authorization?

What is the difference between Mini Program login and authorization?

We can see from the official documentation of the Mini Program that the authorization operation requires wx. authorize() The interface is completed. The following is the description of the authorization operation in the document:

Initiate an authorization request to the user in advance. After the call is made, a pop-up window will immediately ask the user whether they agree to authorize the applet to use a certain function or obtain some of the user's data, but the corresponding interface will not actually be called. If the user has previously agreed to the authorization, no pop-up window will appear and success will be returned directly.

1. In other words, the authorization process actually only obtains the access permission to operate the wx interface on the front end of the mini program. This process will not actually have anything to do with the developer server.

2. Login is to let the developer server know who the current user is? In traditional web applications, we must ask users to enter their account number and password to log in. But in the WeChat application, we can complete this operation through the WeChat server and obtain the unique identifier (openId) corresponding to the current user.

Note: The openId of each user is unique to each WeChat application (official account or mini program), which means that a user will have different openIds to different WeChat applications

PHP Chinese website, a large number of free small program development tutorials, welcome to learn!

The above is the detailed content of What is the difference between mini program login and authorization?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? Mar 19, 2024 pm 02:00 PM

What should I do if I download other people's wallpapers after logging into another account on wallpaperengine?

How do I log in to my previous account on Xiaohongshu? What should I do if the original number is lost after it is reconnected? How do I log in to my previous account on Xiaohongshu? What should I do if the original number is lost after it is reconnected? Mar 21, 2024 pm 09:41 PM

How do I log in to my previous account on Xiaohongshu? What should I do if the original number is lost after it is reconnected?

Discuz background login problem solution revealed Discuz background login problem solution revealed Mar 03, 2024 am 08:57 AM

Discuz background login problem solution revealed

'Onmyoji' Ibaraki Doji's collection skin can be obtained as soon as you log in, and the new Zen Heart Cloud Mirror skin will be launched soon! 'Onmyoji' Ibaraki Doji's collection skin can be obtained as soon as you log in, and the new Zen Heart Cloud Mirror skin will be launched soon! Jan 05, 2024 am 10:42 AM

'Onmyoji' Ibaraki Doji's collection skin can be obtained as soon as you log in, and the new Zen Heart Cloud Mirror skin will be launched soon!

How to log in to Kuaishou PC version - How to log in to Kuaishou PC version How to log in to Kuaishou PC version - How to log in to Kuaishou PC version Mar 04, 2024 pm 03:30 PM

How to log in to Kuaishou PC version - How to log in to Kuaishou PC version

How to upgrade win10 enterprise version 2016 long-term service version to professional version How to upgrade win10 enterprise version 2016 long-term service version to professional version Jan 03, 2024 pm 11:26 PM

How to upgrade win10 enterprise version 2016 long-term service version to professional version

How to log in to two devices on Quark How to log in to two devices on Quark Feb 23, 2024 pm 10:55 PM

How to log in to two devices on Quark

115 Netdisk web version login entrance 115 Netdisk web version login entrance Feb 23, 2024 pm 02:04 PM

115 Netdisk web version login entrance

See all articles