文件名称:OauthTest
介绍说明--下载内容均来自于网络,请自行研究使用
Android版新浪、网易、腾讯、搜狐微博OAuth认证实例集,想更多了解OAuth认证的朋友,请下载java源码包,在示例中完整解析了OAuth认证的过程:定义URL编码方式,请求url,得到注册应用后服务商提供的key和secret,生成32个字符长度且每次都不同的随机字符串,设置Oauth协议版本,请求签名等操作。
在用户授权页面,实现:
1.初始化OAuth对象
2.获取用户授权页面并填充至webView
3.根据载入的url判断匹配规则的结果执行跳转
在登录选择界面实现根据不同的按钮点击初始化数据。
在展示AccessToken源代码中,实现:
1. 获取授权后成功后回调的URL并匹配出验证码(网易无验证码不处理)
2.获取OAuth对象并设置验证码
3.获取accessToken -Android version of Sina, Netease, Tencent, Sohu Weibo OAuth authentication instance set and want to learn more about OAuth authentication friend, please download java source package, in the example of the complete analytical OAuth authentication process: Define URL encoding, request url, key and secret obtained after registration application service providers to generate 32 characters in length, and each time a different random strings, set Oauth protocol version, request signatures and other operations. User authorization page to achieve: 1 2 get user object initialization OAuth authorization page and fill to webView 3 url judgment based on the results of the implementation of matching rules loaded selection interface to achieve a jump in the login button click, depending on initial data. In the show AccessToken source code, to achieve: 1 After obtaining authorization after the success callback URL and match verification code (Netease no verification code does not handle) 2 get OAuth
在用户授权页面,实现:
1.初始化OAuth对象
2.获取用户授权页面并填充至webView
3.根据载入的url判断匹配规则的结果执行跳转
在登录选择界面实现根据不同的按钮点击初始化数据。
在展示AccessToken源代码中,实现:
1. 获取授权后成功后回调的URL并匹配出验证码(网易无验证码不处理)
2.获取OAuth对象并设置验证码
3.获取accessToken -Android version of Sina, Netease, Tencent, Sohu Weibo OAuth authentication instance set and want to learn more about OAuth authentication friend, please download java source package, in the example of the complete analytical OAuth authentication process: Define URL encoding, request url, key and secret obtained after registration application service providers to generate 32 characters in length, and each time a different random strings, set Oauth protocol version, request signatures and other operations. User authorization page to achieve: 1 2 get user object initialization OAuth authorization page and fill to webView 3 url judgment based on the results of the implementation of matching rules loaded selection interface to achieve a jump in the login button click, depending on initial data. In the show AccessToken source code, to achieve: 1 After obtaining authorization after the success callback URL and match verification code (Netease no verification code does not handle) 2 get OAuth
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OauthTest\.classpath
.........\.project
.........\.settings\.svn\dir-wcprops
.........\.........\....\empty-file
.........\.........\....\entries
.........\.........\....\format
.........\.........\....\README.txt
.........\.........\....\text-base\org.eclipse.core.resources.prefs.svn-base
.........\.........\....\wcprops\org.eclipse.core.resources.prefs.svn-work
.........\.........\org.eclipse.core.resources.prefs
.........\..vn\dir-wcprops
.........\....\empty-file
.........\....\entries
.........\....\format
.........\....\README.txt
.........\....\text-base\.classpath.svn-base
.........\....\.........\.project.svn-base
.........\....\.........\AndroidManifest.xml.svn-base
.........\....\.........\default.properties.svn-base
.........\....\.........\proguard.cfg.svn-base
.........\....\wcprops\.classpath.svn-work
.........\....\.......\.project.svn-work
.........\....\.......\AndroidManifest.xml.svn-work
.........\....\.......\default.properties.svn-work
.........\....\.......\proguard.cfg.svn-work
.........\AndroidManifest.xml
.........\assets\.svn\dir-wcprops
.........\......\....\empty-file
.........\......\....\entries
.........\......\....\format
.........\......\....\README.txt
.........\bin\.svn\dir-wcprops
.........\...\....\empty-file
.........\...\....\entries
.........\...\....\format
.........\...\....\prop-base\classes.dex.svn-base
.........\...\....\.........\OauthTest.apk.svn-base
.........\...\....\.........\resources.ap_.svn-base
.........\...\....\....s\classes.dex.svn-work
.........\...\....\.....\OauthTest.apk.svn-work
.........\...\....\.....\resources.ap_.svn-work
.........\...\....\README.txt
.........\...\....\text-base\classes.dex.svn-base
.........\...\....\.........\OauthTest.apk.svn-base
.........\...\....\.........\resources.ap_.svn-base
.........\...\....\wcprops\classes.dex.svn-work
.........\...\....\.......\OauthTest.apk.svn-work
.........\...\....\.......\resources.ap_.svn-work
.........\...\classes.dex
.........\...\.om\oauthTest\activity\AuthorizationAct$WebViewC.class
.........\...\...\.........\........\AuthorizationAct.class
.........\...\...\.........\........\MainAct.class
.........\...\...\.........\........\ShowAccessTokenAct.class
.........\...\...\.........\data\OAuth.class
.........\...\...\.........\R$attr.class
.........\...\...\.........\R$drawable.class
.........\...\...\.........\R$id.class
.........\...\...\.........\R$layout.class
.........\...\...\.........\R$string.class
.........\...\...\.........\R.class
.........\...\...\.........\utils\Base64Encoder.class
.........\...\...\.........\.....\ConfigUtil.class
.........\...\...\.........\.....\HttpClientUtil.class
.........\...\OauthTest.apk
.........\...\resources.ap_
.........\default.properties
.........\gen\.svn\dir-wcprops
.........\...\....\empty-file
.........\...\....\entries
.........\...\....\format
.........\...\....\README.txt
.........\...\com\oauthTest\R.java
.........\lib\.svn\dir-wcprops
.........\...\....\empty-file
.........\...\....\entries
.........\...\....\format
.........\...\....\prop-base\commons-io.jar.svn-base
.........\...\....\.........\commons-lang-2.3.jar.svn-base
.........\...\....\.........\commons-logging.jar.svn-base
.........\...\....\.........\log4j.jar.svn-base
.........\...\....\....s\commons-io.jar.svn-work
.........\...\....\.....\commons-lang-2.3.jar.svn-work
.........\...\....\.....\commons-logging.jar.svn-work
.........\...\....\.....\log4j.jar.svn-work
.........\...\....\README.txt
.........\...\....\text-base\commons-io.jar.svn-base
.........\...\....\.........\commons-lang-2.3.jar.svn-base
.........\...\....\.........\commons-logging.jar.svn-base
.........\...\....\.........\log4j.jar.svn-base
.........\...\....\wcprops\commons-io.jar.svn-work
.........\...\....\.......\commons-lang-2.3.jar.svn-work
.........\...\....\.......\commons-logging.jar.svn-work
.........\...\....\.......\log4j.jar.svn-work
.........\...\commons-io.jar
.........\...\commons-lang-2.3.jar
.........\...\commons-logging.jar
.........\...\log4j.jar
.........\proguard.cfg
.........\res\.svn\dir-