文章目錄
- Spring Security OAuth2如何自定義返回的 Token 信息
- 定制不透明令牌的信息
- Springsecurity-oauth2之TokenEndPoint
- 參考
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,如下: