spring-oauth-server实践:授权方式1、2、3和授权方式4的token对象.authorities产生方式比较
2017-07-11 14:11
501 查看
授权方式1、2、3和授权方式4的token对象.authorities产生方式不同,
前者使用user_privillege构建,
后者直接使用oauth_client_details.authorties构建
一、授权方式1-3产生的token对象
1、token对象(authorities=ROLE_USER,ROLE_[USER_PRIVILLEGE])
org.springframework.security.oauth2.provider.OAuth2Authentication@2b6640ba: Principal: {user={username='mobile', phone='', id='23', guid='612025cb3f964a64a48bbdf77e53c2c1', defaultUser='false', email='mobile@wdcy.cc'}}; Credentials: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_USER, ROLE_MOBILE二、授权方式4产生的token对象
1、filters
2、token对象(authorities=OAUTH_CLIENT_DETAILS.AUTHORTITES)
org.springframework.security.oauth2.provider.OAuth2Authentication@4a288e8e: Principal: credentials-client; Credentials: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_UNITY, ROLE_USER相关文章推荐
- spring-oauth-server实践:授权方式四:client_credentials 模式下access_token的产生
- spring-oauth-server实践:使用授权方式四:client_credentials 模式下access_token做业务!!!
- spring-oauth-server实践:授权方式四:client_credentials 模式的refresh_token?
- spring-oauth-server实践:授权方式三:PASSWORD模式下 authorities:ROLE_{user.privillege}, ROLE_USER
- spring-oauth-server实践:授权方式四:client_credentials 模式下有效期内重复申请 access_token ?
- spring-oauth-server实践:使用授权方式四:client_credentials 模式的客户端和服务端交互
- spring-oauth-server实践:access_token的有效期分析
- spring-oauth-server实践:OAuth2.0 通过header 传递 access_token 验证
- spring-oauth-server实践:客户端和服务端环境搭建
- spring-02 spring的bean管理(使用注解方式创建对象 附代码)
- C#中对象的四种相等比较方式
- Spring底层创建对象的几种方式
- 关于Spring Data redis几种对象序列化的比较
- oauth2-server-php-docs 授权控制器
- Spring-Security-OAuth2微信网页授权
- Spring(IOC) 对象创建三种方式、对象bean起别名
- 基于 IdentityServer3 实现 OAuth 2.0 授权服务【密码模式(Resource Owner Password Credentials)】
- Spring中配置JdbcTemplate的三种方式要使用Jdbctemplate 对象来完成jdbc 操作。
- Spring_IOC注解方式装配Bean对象
- spring入门:beans.xml不提示、别名、创建对象的三种方式