LinkedIn OAuth失败,并显示https_required错误消息 [英] LinkedIn OAuth failed with https_required error message
问题描述
我们的目标是从Linked In API获取访问令牌,以便我们获取当前的用户详细信息.我们正在遵循此处提到的API: OAuth 2.0客户端凭据流程(2-有腿的)
Our goal is to get the access token from Linked In API so that we can fetch the current user detail. We are following the API mentioned here: OAuth 2.0 Client Credentials Flow (2-Legged)
我们从API得到的响应是:
The response we are getting from the API is:
{"error":"https_required","error_description":"The client is not authorized"}
这是通过ARC发出的请求:
Here is the request made via ARC:
这是LinkedIn App Management门户上的设置:
Here is the setup at the LinkedIn App Management portal:
LinkedIn登录名(客户端)的网址
The URL from where the LinkedIn login is being called (the Client)
您可以从以上三个屏幕截图中验证在以下所有情况下是否使用了 HTTPS :
You can verify from the above three screenshots that for all the following cases HTTPS is being used:
- 用于POST请求的LinkedIn请求的URL.
- 在PayLoad中重定向URI.
- 在LinkedID门户的App中设置的重定向URI.
- 请求LinkedIn登录的客户端URL.
有人可以分享为什么LinkedIn OAuth仍然抛出错误":"https_required"吗?
Can someone share why the LinkedIn OAuth is still throwing "error": "https_required"?
推荐答案
我遇到了这个确切的问题,我有一个现有的应用程序,今天突然我遇到了这个问题,当时它的所有配置都正确.
I was having this exact problem, where I have an existing app, and all of a sudden today I was having this issue, when it was all configured correctly.
它现在再次为我工作,因此我认为LinkedIn端存在一个临时错误
It now started working for me again, therefore I assume there was a temporary bug on LinkedIn's end
这篇关于LinkedIn OAuth失败,并显示https_required错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!