LinkedIn OAuth2 /oauth/v2/accessToken 响应未返回 "token_type"

LinkedIn OAuth2 /oauth/v2/accessToken response not returning a "token_type"

我在我的项目中使用 spring-security-oauth2-client 进行身份验证,但库希望 [=19] 的响应中出现“token_type” =]-请求https://www.linkedin.com/oauth/v2/accessToken. The library is built following the OAuth2 convention, but LinkedIn is not following this convention. The AccessToken convention: https://www.rfc-editor.org/rfc/rfc6749#section-5.1

有人解决这个问题吗?我临时克隆了 spring-security-oauth2-client 的子库之一,以强制“token_type”成为“Bearer”。

已报告此问题here and here. The fix proposed here by jgrandja正在解决。