spring
腾讯SNG夏日招聘集结号:200个空缺岗位,JAVA、C++、云计算、Android……spring-oauth-client 项目的实现根据 Oauth 协议支持的5类 grant_type (对 grant_type 的说明请访问 Oauth支持的5类 grant_type 及说明)依次去实现, 并对每一步的操作要求,请求参数,使用场景等进行详细的说明.
Change Log:
[*] Initial ‘spring-oauth-client’ project
[*] Implement ‘authorization_code ‘ grant type process
[*] Implement ‘password’ grant type process
[*] Implement ‘implicit’ grant type process
[*] Implement ‘client_credentials’ grant type process
[*] Implement ‘refresh_token’ grant type process
0.1版本访问地址: http://git.oschina.net/mkk/spring-oauth-client/tree/V-0.1
项目地址: http://git.oschina.net/mkk/spring-oauth-client
spring-oauth-client是基于spring-oauth-server开源项目的Oauth客户端代码参考实现.
spring-oauth-client 的实现没有使用开源项目 spring-security-oauth2 中提供的代码与配置, 如:
而是按照Oauth2协议支持的5类grant_type依次去实现.
[*] authorization_code -- 授权码模式(即先登录获取code,再获取token)
[*] password -- 密码模式(将用户名,密码传过去,直接获取token)
[*] client_credentials -- 客户端模式(无用户,用户向客户端注册,然后客户端以自己的名义向'服务端'获取资源)
[*] implicit -- 简化模式(在redirect_uri 的Hash传递token; Auth客户端运行在浏览器中,如JS,Flash)
[*] refresh_token -- 刷新access_token
针对每一类grant_type的每一步实现都有详细具体的说明与示例。
页:
[1]