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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM