Recently, open platforms have become very popular. Internet companies have launched their own open platforms, followed by the popular openid. oauth has become the main technology for authentication and authorization. This document takes logon to Sina Weibo for authorization to obtain user data as an example to briefly study the use of oauth. (Oauth wiki ). Curren
Development (8) webpage authorization (Oauth) get user information through Oauth, oauth user information
Author: Songyang
This article is from Ashura road and is prohibited for commercial purposes. For more information, see the source.
Link: http://blog.csdn.net/fansongy/article/details/45340951
Webpage authorization
During development, we al
OAuth IntroductionOAuth was co-sponsored by Blaine Cook, Chris Messina, Larry Halff and David Recordon to provide a safe and open standard for API access authorization.Based on OAuth authentication authorization has the following characteristics:Safety. OAuth differs from other licensing methods: OAuth authorization do
Original address: http://www.ibm.com/developerworks/cn/java/j-lo-oauth/index.htmlReference Blog: http://www.cnblogs.com/wangkewei/archive/2011/01/14/1935858.htmlAbout OAuthOAuth was co-sponsored by Blaine Cook, Chris Messina, Larry Halff and David Recordon to provide a secure, open standard for API access authorization.OAuth-based authentication authorization has the following characteristics:
Safety. The difference between
The OAuth protocol is dedicated to making Web sites and applications (collectively, consumer Consumer) able to access the protected resources of the user to the provider (service Provider) through the API without the user disclosing their authentication information. More generally, OAuth provides a freely implemented a
I. Overview and Installation
This extension provides a binding between the OAuth consumer and the provider. OAuth is an authorization protocol built on HTTP that allows applications to securely access data without having to store user names and passwords.
Pecl/oauth requires PHP 5.1 or later, as well as Ext/hash and Ex
switched to oauth authentication is to prevent GFW from getting the accounts and passwords of some celebrities through packet capture ). For specific definitions, read the oauth specification definition: oauth specification.
2. Sina Weibo Open Platform:
The basic interfaces, parameters, and return formats of Sina Weibo's Open Platform refer to the Twitter
emphasis is must understand OAuth authentication, the entire process of authorization, as well as in the entire OAuth authentication, authorization process several Token, 4 URLs role.Just start to encounter completely no concept of the OAuth, think it will not go to study. Fortunately, the following articles are found to be very helpful for understanding
The main process of OAuth Authentication and storage on Sina Weibo is detailed, and oauth is detailed. The main process of OAuth Authentication and storage on sina Weibo is described in detail. oauth is described in many articles about OAuth on the Internet, but sina itself
OAuth and oauth
1. Background of OAuth generation
With the development of the Internet, some Internet giants have accumulated massive amounts of users and data. For platform-level software vendors, the user needs are diverse and varied. The varied demands are fully met by one's own efforts, and it is inevitable that they are exhausted by their own lives. Therefo
PHP version QQ internet OAuth sample code sharing, oauth sample code. The PHP version of QQ internet OAuth sample code is shared. the oauth sample code is widely used by QQ users in China, so all major websites are providing QQ login ports as much as possible. let's take a look at the php version, PHP version QQ interc
I learned how to call oauth authorization to obtain data. This article describes how to enable oauth authorization and control server data access. [Download source code]First look 1:
There were too many things in the past two days, and the articles were sorted out intermittently.
OK. Proceed to the topic. Here we still need to use the devdefined. oauth framework
compiled source code requires JDK 5+.
OAuth Introduction
The OAuth protocol enables users to share private resources stored in a Web site with other sites without disclosing user credentials-for example, user names and passwords-to sites other than Web sites that have user data. A Web site with OAuth as one of the authentication protocols enhances the privacy
Details on the OAuth authentication and Storage Processes on Sina Weibo and oauth
There are a lot of articles on OAuth on the Internet, but sina itself is not described in detail, including the verification process and storage of verified data, therefore, I wrote some detailed comments to the Twitter authentication process.
Before we start, we first create a data
The specific cause of this problem is generally the following two points:
1. In the authorized section we generally authorize by using our own login action HTTP BASIC, while we use spring security only exposed the login interface, which means that the other interfaces are in spring Security protection, including the/oauth interface.
2. Use/oauth/authorize?grant_type=passwordusername=userpassword=pwdclient_i
OAuth Authorization: Is a third party can be allowed to contact the user's account password while the third party program authorization.How to do Sina OAuth authorization:1, become a Sina developer (join)Sign in with your Sina Weibo account: open.weibo.com Sina open Platform2, create application (get ID card)Click the Create App button on the homepage, fill in the Application name/address/category/platform,
PHP version QQ interconnection OAuth sample code sharing, oauth sample code
Due to the universality of QQ users in China, all major websites now provide QQ login ports as much as possible. Let's take a look at the php version for your reference.
/*** QQ Internet oauth * @ author dyllen **/class Oauth {// obtain Authori
Scribe here refers to the oauth library, the Project address: https://github.com/fernandezpablo85/scribe-java, not the Facebook one (https://github.com/facebook/scribe ).
Oauth1.0a \ oauth2.0 is supported. I personally feel very good.
The usage is actually very simple. You can check the official website. The Sina Weibo request instance is attached here:
package com.yfz;import java.util.*;import org.scribe.builder.*;import org.scribe.builder.api
oauth 1.0, the callback URL will be set, after the user clicks the authorize button, * redirect to callback URL with authorized token and related Params ** when the standalone app uses auth 1.0, it also needs register a domain to obtain the consumer key and secret. * **/public class oauth1example {public static void main (string [] ARGs) throws exception {// The comsumer key is St Ring oauthconsumerkey = "
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.