我在我的项目中使用spring-security-oauth2-client进行身份验证,但是库期望在对https://www.linkedin.com/oauth/v2/accessToken的POST请求的响应中出现“token_type”。该库是遵循OAuth2约定构建的,但是LinkedIn并未遵循该约定。 AccessToken约定:https://tools.ietf.org/html/rfc6749#section-5.1

有人能解决此问题吗?我暂时克隆了spring-security-oauth2-client的子库之一,以强制将“token_type”设置为“Bearer”。

最佳答案

已经报告了herehere这个问题。 here建议的jgrandja修复程序正在工作。

关于java - LinkedIn OAuth2/oauth/v2/accessToken响应未返回“token_type”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51745792/

10-12 00:13
查看更多