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
spring-oauth-client是基于spring-oauth-server开源项目的Oauth客户端代码参考实现.
spring-oauth-client 的实现没有使用开源项目 spring-security-oauth2 中提供的代码与配置, 如:
而是按照Oauth2协议支持的5类grant_type依次去实现.
1.authorization_code -- 授权码模式(即先登录获取code,再获取token)
2.password -- 密码模式(将用户名,密码传过去,直接获取token)
3.client_credentials -- 客户端模式(无用户,用户向客户端注册,然后客户端以自己的名义向'服务端'获取资源)
4.implicit -- 简化模式(在redirect_uri 的Hash传递token; Auth客户端运行在浏览器中,如JS,Flash)
5.refresh_token -- 刷新access_token
针对每一类grant_type的每一步实现都有详细具体的说明与示例。
软件详情:http://git.oschina.net/mkk/spring-oauth-client/tree/V-0.1
下载地址:http://git.oschina.net/mkk/spring-oauth-client
来自:开源中国社区

