LinkedIn OAuth 2.0重定向网址

 爱情黄昏泪的诱惑_494 发布于 2022-12-19 11:30

我试图用LinkedIn Omniauth 2 gem登录用户.我尝试了一些不同的重定向可能性,阅读了几篇文章,没有任何工作.

我想在本地测试一下.Rails 4 app

宝石包括:omniauth omniauth-linkedin-oath2

重定向URL放入框中的几次尝试包括:

https://www.linkedin.com/uas/oauth2/authorization?client_id=759dczzx23nyic&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Flinkedin%2Fcallback&response_type=code&scope=r_basicprofile+r_emailaddress&state=8da572e31a8e66e6b1de54acddd14937d976ed06d7ed3217&client_id=*

=需要保持私密的API密钥

http://localhost:3000

http://localhost:3000/

http://www.localhost:3000

https://localhost:3000

https://localhost:3000/

https://www.localhost:3000

我在整个过程中阅读了这两篇文章,但仍无法尝试找到重定向的正确方法.

https://developer.linkedin.com/forum/register-your-oauth-2-redirect-urls

https://developer.linkedin.com/forum/oauth-20-redirect-url-faq-invalid-redirecturi-error

我需要改变的任何帮助都会很棒.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有