首页 文章

在Spring Security中使用Bearer令牌而不是Basic Auth检查令牌

提问于
浏览
0

我是使用Spring Boot OAuth2和Spring Boot的新手 . 我使用教程做了一个例子,一切正常 . 但我想知道是否可以使用授权承载令牌头而不是基本身份验证头访问 /oauth/check_token (通过cUrl) . 因为我做了一些测试,Spring返回"Full authentication is required to access this resource" .

谢谢

1 回答

  • 0

    我想知道是否可以使用授权承载令牌访问/ oauth / check_token(通过cUrl)

    不,实际上OAuth2 access_tokenrefresh_token 中有两种类型的令牌可用于访问受保护资源 .

相关问题