Facebook登录消息:“已阻止URL:此重定向失败,因为重定向URI未在应用程序的客户端OAuth设置中列入白名单”。 [英] Facebook login message: "URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings."

查看:7772
本文介绍了Facebook登录消息:“已阻止URL:此重定向失败,因为重定向URI未在应用程序的客户端OAuth设置中列入白名单”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重要通知:



如果您注册测试,请转到您的个人资料设置和兴趣添加删除个人资料



尝试使用Facebook登录到我的



应用程序密钥和密码正确无误。我正在使用Meteor及其帐户包。

解决方案

您网站上的Facebook按钮登录链接到:



https://www.facebook.com/v2.2/dialog/oauth?client_id=1500708243571026&redirect_uri=http://openstrategynetwork.com/_oauth/facebook&display=popup&scope=电子邮件&安培;状态= eyJsb2dpblN0eWxlIjoicG9wdXAiLCJjcmVkZW50aWFsVG9rZW4iOiIwSXhEU05XamJjU0VaQWdqcmF6SXdOUWRuRFozXzc0X19lbVhGWUJTZGNYIiwiaXNDb3Jkb3ZhIjpmYWxzZX0 =



注意: REDIRECT_URI = HTTP://openstrategynetwork.com/_oauth/facebook



如果您改为链接:



redirect_uri = http://openstrategynetwork.com/_oauth/facebook?close



它应该工作。或者,您可以将Facebook链接更改为 http://openstrategynetwork.com/_oauth/facebook



您可以还将 http:// localhost / _oauth / facebook 添加到有效的重定向URI。



Facebook要求您将URI重新列入白名单,否则人们可以使用Facebook登录您的服务,然后将其访问令牌发送到攻击者的服务器!而且你不希望发生;]


Important notice:

If you register for testing, go to your profile settings and to your interests add delete profile.

Trying to login with Facebook to my website:

I get the following error:

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.

My settings (Basics) in Facebook are:

In the advanced tab, Valid OAuth redirect URIs is set to:

http://openstrategynetwork.com/_oauth/facebook?close

App is public.

More settings (Advanced) here:

App key and secret are correct. I'm using Meteor and its accounts packages.

解决方案

The login with Facebook button on your site is linking to:

https://www.facebook.com/v2.2/dialog/oauth?client_id=1500708243571026&redirect_uri=http://openstrategynetwork.com/_oauth/facebook&display=popup&scope=email&state=eyJsb2dpblN0eWxlIjoicG9wdXAiLCJjcmVkZW50aWFsVG9rZW4iOiIwSXhEU05XamJjU0VaQWdqcmF6SXdOUWRuRFozXzc0X19lbVhGWUJTZGNYIiwiaXNDb3Jkb3ZhIjpmYWxzZX0=

Notice: redirect_uri=http://openstrategynetwork.com/_oauth/facebook

If you instead change the link to:

redirect_uri=http://openstrategynetwork.com/_oauth/facebook?close

It should work. Or, you can change the Facebook link to http://openstrategynetwork.com/_oauth/facebook

You can also add http://localhost/_oauth/facebook to the valid redirect URIs.

Facebook requires that you whitelist redirect URIs, since otherwise people could login with Facebook for your service, and then send their access token to an attacker's server! And you don't want that to happen ;]

这篇关于Facebook登录消息:“已阻止URL:此重定向失败,因为重定向URI未在应用程序的客户端OAuth设置中列入白名单”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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