LinkedIn OAuth2/oauth/v2/accessToken响应未返回"token_type" [英] LinkedIn OAuth2 /oauth/v2/accessToken response not returning a "token_type"
问题描述
我在我的项目中使用spring-security-oauth2-client进行身份验证,但是库希望对 https://www.linkedin.com/oauth/v2/accessToken .该库是遵循OAuth2约定构建的,但是LinkedIn并未遵循该约定. AccessToken约定: https://tools.ietf.org/html/rfc6749#section- 5.1
I'm using spring-security-oauth2-client for the authentication in my project, but the library expects a "token_type" to be present in the response of the POST-request to 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://tools.ietf.org/html/rfc6749#section-5.1
有人可以解决此问题吗?我暂时克隆了spring-security-oauth2-client的子库之一,以强制将"token_type"设置为"Bearer".
Does anyone have a fix for this problem? I temporarily cloned one of the child libraries of spring-security-oauth2-client to force the "token_type" to be "Bearer".
推荐答案
已经报告了此问题此处.该修补程序由此处提出https://github.com/jgrandja"rel =" nofollow noreferrer> jgrandja 正在工作.
This issue has already been reported here and here. The fix proposed here by jgrandja is working.
这篇关于LinkedIn OAuth2/oauth/v2/accessToken响应未返回"token_type"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!