设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

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

2015-6-3 23:55| 发布者: joejoe0332| 查看: 633| 评论: 0|原作者: oschina|来自: oschina

摘要: spring-oauth-client 项目的实现根据 Oauth 协议支持的5类 grant_type (对 grant_type 的说明请访问Oauth支持的5类 grant_type 及说明)依次去实现, 并对每一步的操作要求,请求参数,使用场景等进行详细的说明.Change ...

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 中提供的代码与配置, 如:<oauth:client id="oauth2ClientFilter" />

而是按照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的每一步实现都有详细具体的说明与示例。

酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部