使用simpleauth使用GAE登录 [英] Using simpleauth to login in with GAE

查看:124
本文介绍了使用simpleauth使用GAE登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题在这个的参考文献中。建议我使用 simpleaut h通过linkedin登录。现在我遇到了 redirect_uri 的问题。我成功部署了 dev_appserver.py示例/ ,但是当我点击LinkedIn Oauth2时,出现此错误。

$ c>无效的redirect_uri。该值必须与使用API​​密钥注册的URL匹配。

我从网址重定向URI:

  redirect_uri = http%3A%2F%2Flocalhost%3A8080%2Fauth%2Flinkedin2%2Fcallback 

我输入了相同的重定向网址( http:// localhost:8080 / auth / linkedin / callback )在 https://www.linkedin.com/developer/ 页面。



我已经被前一个图书馆困住了,即使这样现在看起来并不适合我。

解决方案

请求网址应该是 http:// localhost:8080 / auth / linkedin2 /回调。现在它正在工作。

This question is in the reference of this. As suggested I am using simpleauth to login via linkedin. Now I am having trouble with the redirect_uri. I have successfully deployed dev_appserver.py example/ but when I click on LinkedIn Oauth2, I get this error.

 invalid redirect_uri. This value must match a URL registered with the API Key.

My redirect uri from url:

redirect_uri= http%3A%2F%2Flocalhost%3A8080%2Fauth%2Flinkedin2%2Fcallback

And I have entered same redirect url(http://localhost:8080/auth/linkedin/callback) in https://www.linkedin.com/developer/ page.

I was already stuck with previous library, and even this doesn't seems to work for me now.

解决方案

Request url should be http://localhost:8080/auth/linkedin2/callback. Now it's working.

这篇关于使用simpleauth使用GAE登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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