转载自:https://my.oschina.net/bigyuan/blog/352204 1、三种投票器,默认是 一票制 配置方式 decisionVoters属性 在我们不声明AccessDecisionManager时,decisionVoters属性是自动配置的。 默认的AccessDec ...
分类:
其他好文 时间:
2017-06-21 16:48:11
阅读次数:
150
http://localhost:8080/spring-oauth-server/m/dashboard?access_token=8194a1d7-2784-4a9e-a71b-25bebfc9ba0e 成功场景!!! 失败场景!!! ...
分类:
其他好文 时间:
2017-06-21 13:55:44
阅读次数:
145
1、发起授权码请求 2、服务端登录 3、服务端验证client_id,返回authorization_code 4、客户端接收authorization_code后,转发给了 /oauth/token 4、显示access_token和refresh_token ...
分类:
编程语言 时间:
2017-06-20 09:49:09
阅读次数:
234
1、在加载配置文件定义时,判断使用哪个AuthenticationManager 在配置文件Security.xml加载时,首先创建一个ProviderManager,然后 如果配置了默认AuthenauthManager(http的属性authentication-manager-ref),就用默 ...
分类:
编程语言 时间:
2017-06-20 09:41:37
阅读次数:
134
首先是http的配置,authentication-manager-ref="authenticationManager"指定了默认的authentication-manager<http auto-config="true" authentication-manager-ref="authenti ...
分类:
其他好文 时间:
2017-06-19 15:13:58
阅读次数:
204
最近再学习spring security oauth2。下载了官方的例子sparklr2和tonr2进行学习。但是例子里包含的东西太多,不知道最简单最主要的配置有哪些。所以决定自己尝试搭建简单版本的例子。学习的过程中搭建了认证和资源在一个工程的例子,将token存储在数据库的例子等等 。最后做了这个 ...
分类:
编程语言 时间:
2017-06-18 23:31:40
阅读次数:
880
1、org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter org.springframework.security.oauth2.provider.client.ClientCre ...
分类:
编程语言 时间:
2017-06-17 22:35:43
阅读次数:
236
1、org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter org.springframework.security.oauth2.provider.client.ClientCre ...
分类:
编程语言 时间:
2017-06-17 19:43:00
阅读次数:
251
步骤一:添加网站 进入新浪微博开放平台,http://open.weibo.com/apps 进入“管理中心“,点击”创建应用”,选择“网页应用”,填写相应的信息后提交。 步骤二:Oauth2.0授权设置 应用创建完后可以在“管理中心”-“我的应用”中查看信息,在“应用信息”--“高级信息”中可以设 ...
使用OAuth2.0调用API 使用OAuth2.0调用API接口有两种方式: 使用OAuth2.0调用API接口有两种方式: 1、 直接使用参数,传递参数名为 access_token 1、 直接使用参数,传递参数名为 access_token URL 1 https://api.weibo.co ...
分类:
Windows程序 时间:
2017-06-16 23:14:37
阅读次数:
1110