Build OAuth2.0 service based on thinkphp framework
These days have been engaged in OAuth2.0 things, write SDK what, in order to more in-depth understanding of the service side of the OAuth authentication mechanism, I built a PHP under the OAuth environment, and transplanted it into their own relatively familiar TP framework.
A lot of crap says, start.
?
In fact, there are OAuth2.0 PHP version of the Internet.
You can find the source code in http://code.google.com/p/
Build OAuth2.0 service based on thinkphp framework
These days have been engaged in OAuth2.0 things, write SDK what, in order to more in-depth understanding of the service side of the OAuth authentication mechanism, I built a PHP under the OAuth environment, and transplanted it into their own relatively familiar TP framework.
A lot of crap says, start.
?
In fact, there are OAuth2.0 PHP version of the Internet.
You can find the source code in http://code.google.com/p/
Because the project needs, so learn the next micro-blog of the third-party authorized login, in this record, for review.
1. Developers register and refine app information
1.1 Enter http://open.weibo.com/, login with Weibo account, perfect developer information (select individual or company)
1.2 Enter http://open.weibo.com/development, click Create App, select Mobile app, perfect information (just test, some information can be filled in first, but the Android package name, and signature need to
To work fast two months, growth of course, there are some, but there are a lot of bad, a lot of things may not be in-depth understanding, can only do some simple functions, and then sometimes may be less efficient, the head more like disorderly thinking.Keep a record of your work and study every day. Of course, the goal is to focus on the implementation of all the functions of the stage, performance, and so on later or the master to solve and raise the point and self-growth for some time.New pro
This article mainly introduces how to open and log on to the microsite by clicking the public account menu, the implementation steps and functional code of callback, menu, and parameter processing are described in detail in the form of instances.
This article mainly introduces how to open and log on to the microsite by clicking the public account menu, the implementation steps and functional code of callback, menu, and parameter processing are described in detail in the form of instances.
OAuth2.0 webpage
The following sections:
Http://mp.weixin.qq.com/wiki/4/9ac2e7b1f1d22e9e57260f6553822520.htmlThis option is used. In general1. you must first have a public account (which has the permission to grant permissions ),2. then go to the public account management platform to configure the authorization callback domain name,3. then access the https://open.weixin.qq.com/connect/oauth2/authorize in the corresponding class of the project? Ap
easier than a service. Once the application has been tested and ready for production, topshelf can easily install the application as a service.Open Source Address: https://github.com/Topshelf/Topshelf3.identityserver3 :Overview: OpenID Connect Provider and the OAuth 2.0 authorization Server Framework for ASP. NET 4.x/katana.Summary: Identityserver is a. Net/katana-based framework and a managed component that allows single sign-on and access control o
component that allows single sign-on and access control of modern Web applications and APIs using protocols such as OpenID Connect and OAuth2. It supports a wide range of clients, such as mobile, WEB,SPA and desktop applications, and is extensible and can be integrated into new and existing architectures. Open Source Address: Https://github.com/IdentityServer/IdentityServer34.MediatR: Overview: In. NET i
. Instantiating a JS object
Add a div to the HTML page
id= "Login_container">div>
Instantiation of
var obj = Ddlogin ({ ID: "Login_container", goto: "Https://oapi.dingtalk.com/connect/oauth2/sns_ authorize?appid=AppIDresponse_type=codescope=snsapi_loginstate=stateredirect_ uri=Redirect_uri", style:" Border:none;background-color: #FFFFFF; ", width:" 365 ", Height: "400"});
Note that the code in the Red font
in the Katana 3 project, specifically mentioned the following three protocols:
Ws-federation
OpenId Connect (available via form submission Id_token and Id_token+code mode)
OAuth2 Ticket token authentication that can be used in the Web API
Vittorio also wrote:
This release also addresses issues caused by changes in Twitter and Google APIs. If you use Google Certification in yo
This article mainly and introduce the PHP public number development of the red envelope implementation method, combined with the example form of the implementation of PHP to achieve the public number of the implementation of the red envelope function ideas, steps and specific operating skills, the need for friends can refer to, hope to help everyone.
A. Requirements:
Fans click on their company's order on the customer's public platform, then return five yuan to the order and send it to the numb
This article mainly introduced the PHP public number development of the red envelope implementation method, combined with the case form analysis of PHP implementation of the public red envelope delivery function of the implementation of ideas, steps and specific operating skills, the need for friends can refer to the next
This paper introduces the implementation method of red envelopes in PHP public number development. Share to everyone for your reference, as follows:
These days encountered a c
Note: I would like to write several more articles, but it seems that it is too specific to be put under such a title, so I would like to give a brief introduction here, and then pick up some content based on the situation.Openid
Openid is an Open Authentication solution, which is related to openid. I have talked about it in my article, but at that time I talked about the earliest version of
submit it to the open platform using XAuth technology and get the Access Token.It is often used for PC executable programs and mobile apps. However, due to some controversy, it is difficult to develop. I will not discuss it here.Install
You can download OAuth Server PHP on github, or use the following command to download it, but the content is the same.
?
Shell
123
mkdir my-oauth2-walkthroughcd my-
QQ login to get a fixed value, online, etc., QQ Color QQ login
Ret: 0
Msg:
Nickname: Wi_H
Gender: Female
Figureurl: http://qzapp.qlogo.cn/qzapp/100330589/##/30
Is_yellow_vip: 0
Vip: 0
Yellow_vip_level: 0
Level: 0
Is_yellow_year_vip: 0
The preceding values are returned by logon. they are not fixed.
Which values are fixed during QQ login? Used as the account ID.
In other words, the OpenID is fixed. how can I call it?
Reply to
This article describes how to obtain basic user information from the Java version of the public platform, for more information about how to obtain basic user information, see this article.
After the consumer and the public account generate a message interaction, the public account can obtain the OpenID of the consumer (encrypted number. each user has a unique OpenID for each public account. For different p
Pre-knowledgemay need to see a little bit of prep knowledgeOAuth 2.0 not entirely brief: https://www.cnblogs.com/cgzl/p/9221488.htmlOpenID Connect Not entirely brief introduction: https://www.cnblogs.com/cgzl/p/9231219.htmlReview OAuth 2.0 and OpenID Connectoauth 2.0 vs OpenID Connect role correspondenceType of client/relying partyOAuth 2.0 vs OpenID Connect Endp
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.