我在我的项目中使用 spring-security-oauth2-client 进行身份验证,但是库希望在对 https://www.linkedin.com/oauth/v2/accessToken 的 POST 请求的响应中出现“token_type” .该库是按照 OAuth2 约定构建的,但 LinkedIn 并未遵循此约定。 AccessToken 约定:https://www.rfc-editor.org/rfc/rfc6749#section-5.1
有人解决这个问题吗?我临时克隆了 spring-security-oauth2-client 的子库之一,以强制“token_type”为“Bearer”。
最佳答案
关于java - LinkedIn OAuth2/oauth/v2/accessToken 响应未返回 "token_type",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51745792/