Author Development Scenario:
Need to guide the public platform users click the link to enter the registration page, the registration page needs to obtain the user's OpenID. The core of the technology is the need to use web authorization, and in the authorization code to get OpenID immediately through JS.
Online about the authorization of the Web page after the first step to obtain the
Keyword public platform custom menu OpenIDAuthor: Fang Times studioOriginal article: http://www.cnblogs.com/txw1958/p/weixin-menu-get-openid.html
In this public platform development tutorial, we will introduce how to obtain the user's OpenID in the custom menu.
The essence of this development tutorial is the flexible use of custom menus and OAuth2.0 authorization.
This article consists of the following four parts:
1. Have advanced interface Permissio
How does a applet obtain openid and user information?
How does a applet obtain openid and user information?
1. Obtain the openid
1.1 get code
Call the interface to obtain the login credential (code) in exchange for the user's login status information, including the user's unique identity (openid) and the session key (s
Use QQ third-party login, mobile app and website application to the same QQ number, access to the OpenID is not the sameOpenID generation is based on the application of AppID and QQ number of some information encryption generated, for a appid and QQ number, OpenID is the onlyThe AppID used by the mobile app and the website app are not the same, so the OpenID you
The recent public platform development Project encountered a functional requirement: Generate a specific URL of the QR code, the user scanned the QR code to jump to the URL specified page, and on this page to get the user's OpenID. This function mainly involves two aspects of the technology: generate two-dimensional code, Web page authorization.1. Generate two-dimensional code:The simple way to generate QR codes is to use the Phpqrcode package directl
You may not know it, but you probably have an openid. If you have a yahooAccount, you have an openid. If you have a WindowsLive account, you will soon have an openid. And today, if you have a GoogleE-mail account, you can also start using your GmailAddress as an openid.
By joining the
Vulnerability warning released by the OpenID official organization: Some OpenID 2.0 certification implementations do not comply with OpenID Authentication 2.0 specifications, leading to security vulnerabilities.
Vulnerability nature:
In section 11.4.2.1 of the OpenID 2.0 specification, it is described: "The OP must b
OAuth focuses on authorization, while OpenID focuses on authentication. On the face of it, these two English words are easy to confuse, but in fact, their meanings are fundamentally different:
Authorization:n. Authorization, recognition, approval, appointment
Authentication:n. To prove or identify; confirm.
OAuth is concerned with authorization, that is, "what the user can do", and OpenID is conc
Use the payment interface in the pay-as-you-go interface and return "sub_appidandsub_openidnotmatch" after sending parameters. according to the instructions, the reason is that the method for obtaining openid is incorrect, but the source code is viewed, it is found that openid is also obtained through authorization, and can indeed print... use the payment interface in pay-as-you-go. after sending the parame
To add a corresponding OpenID to the employee table how does the association relate to a new employee after the concern is linked or what?
Reply content:
To add a corresponding OpenID to the employee table how does the association relate to a new employee after the concern is linked or what?
The way you ask is that an employee table already exists. Two cases.The employee is registered, lets the emplo
can answer questions only when someone asks you, and continue to answer the questions. For another example, if you have been notified of my mobile phone number and saved it, then you suddenly called me, and I must be in conflict. However, if I call you and you know my number through the call display, and call me later, it means we know each other and I will not conflict with each other at least. This makes the essential difference between group sending, passive response, and customer service me
Our platform now has two numbers: one service number (mp.weixin.qq.com) for public platform-related development and one open number (open.weixin.qq.com) for login. Now there is a problem. Each user has an openid. However, the same platform now has two numbers:
A service number (https://mp.weixin.qq.com/) for public platform related development
An open number (https://open.weixin.qq.com/) For Login
Now there is a problem. Each user has an
ArticleDirectory
Brian Ellin
Chris Messina
Breno de Medeiros
Max Engel
Julie Zhuo
John McCrea
After a tense relationship, Facebook, a social network giant, finally turned to openidCommunityThis is a good news for the whole Web. Yesterday, Facebook held an openid user experience Summit at its headquarters in Palo Alto, just like the standard activity stream summit last month, this summit will be of historical significance
Questions about getting an interface for the OpenID list
For this interface I have two questions, I hope to contact friends can answer, Baidu did not find the answer you want.1. What is the list of OpenID returned by this interface sorted by? I test the time found not in accordance with the user's attention to the row, it seems that is not according to the user nickname first letter.
2. In the list of
The key code is as follows:
Get login user Information function Getopenid ($appid, $appsecret, $code) {$url = "Https://api.weixin.qq.com/sns/oauth2/access_token? Appid= ". $appid." secret= ". $appsecret. " code= ". $code." grant_type=authorization_code "; $weixin =file_get_contents ($url);//By code in exchange for Web authorization ACCESS_TOKEN$JS// Encode a string in JSON format $array = Get_object_vars ($jsondecode);//Convert an array of $openid
Package Com.wanhua.weixin.model;Import java.util.ArrayList;Import Java.util.HashMap;Import java.util.List;Import Java.util.Map;Import Org.json.JSONArray;Import org.json.JSONException;Import Org.json.JSONObject;Import Org.junit.Test;Import Play.cache.Cache;Import Play.i18n.Messages;Import Com.alibaba.fastjson.JSON;Import Com.wanhua.util.Const;Import Com.wanhua.weixin.util.WXConst;Import Com.wanhua.weixin.util.WXHttpUtil;/*** Mass advanced mass message according to the
I would like to ask the distribution system to share with others (passing their own openid in the past), and others cannot obtain 4801 of their openid when registering the request interface, which is unauthorized. Why? Does anyone know? (Public Account authorization is okay.) Could you tell the distribution system to share it with others (pass your openid in the
Evaluate the differences between thinkphp data cache, static cache, and query cache. If the browser saves openid, can it use cache to replace sessioncookie? What is the difference between thinkphp data cache, static cache, and query cache. Can I use the cache to replace session cookie when the browser saves the openid?
Reply content:
Evaluate the differences between thinkphp data cache, static cache, an
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.