SpringSecurity自定义跳转路径验证token

配置文件:

 1 #oauth2客户端配置
 2 security:
 3   oauth2:
 4     client:
 5       client-id: rOOM15Zbc3UFWgW2h71gRFvi
 6       client-secret: 2Iw2B0UCMYd1cZjt8Fpr4KJUx75wQCwW
 7       access-token-uri: http://127.0.0.1:8211/oauth/token
 8       user-authorization-uri: http://127.0.0.1:8211/oauth/authorize
 9     resource:
10       token-info-uri: http://127.0.0.1:8211/oauth/check_token

springsecurity的自动配置类:

org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties

Spring Security 与 OAuth2(介绍):https://www.jianshu.com/p/6dd03375224d

posted @ 2020-07-09 10:49  梦在原地  阅读(1521)  评论(0编辑  收藏  举报