我需要将从授权服务器的Web服务获得的OAuth2信息放入我的Spring Boot应用程序中。如何将访问令牌放入Spring Security?
成功通过身份验证后,服务的响应如下所示:
{
"access_token": token here ,
"token_type": "bearer",
"refresh_token": token here,
"expires_in": 1000,
"scope": "read write",
"authorities": [
{
"authority": "Basic"
}
]
}