[英]LinkedIn OAuth 2.0 Redirects to Wrong URL
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=xxxx&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth%2Fcallback-linkedin&scope=r_emailaddress
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=xxxx&redirect_uri=http%3A%2F%2Flocalhost%3A4200%2Fauth%2Fcallback-linkedin&scope=r_emailaddress
The above URL shows that I have the following URL for redirect: 上面的URL显示我具有以下URL用于重定向:
http://localhost:4200/auth/callback-linkedin
HTTP://本地主机:4200 / auth /中回调LinkedIn
In the app settings I have the same authorized redirect URL. 在应用程序设置中,我具有相同的授权重定向URL。 And it also redirects to same page but I get the following error:
并且它也重定向到同一页面,但是出现以下错误:
errors: Array [ "Something went wrong, please try again."
错误:数组[“出了点问题,请重试。” ] response: Object { status: 404, statusText: "Not Found", url: " http://localhost:4200/token ", … }
]响应:对象{状态:404,statusText:“未找到”,url:“ http:// localhost:4200 / token ”,…}
error: "\\n\\n\\n\\nError\\n\\n\\n
错误:“ \\ n \\ n \\ n \\ n错误\\ n \\ n \\ n
Cannot\\n\\n\\n"不能\nPOST /token
POST /令牌
\\ n \\ n \\ n”
According to this stackexchange post localhost has been explicitly disallowed by some vendors. 根据此stackexchange帖子 ,某些供应商已明确禁止localhost。 Can you try 127.0.0.1 or a locally-resolvable DNS name?
您可以尝试127.0.0.1还是本地可解析的DNS名称?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.