红联Linux门户
Linux帮助

spring-oauth-client 0.1发布,Oauth客户端参考实现

发布时间:2015-06-03 11:35:18来源:红联作者:empast
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

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

来自:开源中国社区
文章评论

共有 0 条评论