LinkedIn OAuth2/oauth/v2/accessToken响应未返回"token_type" [英] LinkedIn OAuth2 /oauth/v2/accessToken response not returning a "token_type"

查看:148
本文介绍了LinkedIn OAuth2/oauth/v2/accessToken响应未返回"token_type"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用spring-security-oauth2-client进行身份验证,但是库希望对 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆