如何在Spring Security中放置Oauth2访问令牌?

时间:2019-01-28 07:15:19

标签: spring spring-security oauth-2.0

我需要将从授权服务器的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"
        }
    ]
}

0 个答案:

没有答案