Spring Security OAuth2如何自定义返回的 Token 信息
Spring Boot+OAuth2,如何自定义返回的 Token 信息?
参考URL: https://www.jianshu.com/p/b7312d0defc3
Auth2 返回的 access_token 信息一共包含五项:
分别是:
access_token
token_type
refresh_token
expires_in
scope
1.access_token 从哪里来
我们在生成 access_token 的时候,都配置了一个类,叫做 AuthorizationServerTokenServices,如下:
@Bean
AuthorizationServerTokenServices tokenServices() {