联合开发网   搜索   要求与建议
                登陆    注册
排序按匹配   按投票   按下载次数   按上传日期
按分类查找All android开发(121) 

[android开发] 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 (2014-04-12, Java, 2616KB, 下载11次)

http://www.pudn.com/Download/item/id/2508873.html
总计:121