search
HomeWeChat AppletMini Program DevelopmentWhat 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
differentAppletsAuthorizeLog 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
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 AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),