2021
09-16
09-16
SpringSecurityOAuth2 如何自定义token信息
GitHub地址码云地址OAuth2默认的token返回最多只携带了5个参数(client_credentials模式只有4个没有refresh_token)下面是一个返回示例:{"access_token":"1e93bc23-32c8-428f-a126-8206265e17b2","token_type":"bearer","refresh_token":"0f083e06-be1b-411f-98b0-72be8f1da8af","expires_in":3599,"scope":"authapi"}然后我们需要的token可能需要增加username等自定义参数:{"access_token":"1e...
继续阅读 >