本文介绍了wordpress社交登录插件返回具有NGINX的ERR_INVALID_REDIRECT,用于托管和负载平衡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用wordpress社交登录2.3.3,并启用了yahoo,twitter和facebook.但是在我的基础架构中,我使用nginx托管网页,并且还有另一种nginx实例用于负载均衡流量.我的域已注册,我正在使用非标准端口进行HTTPS.

I am using wordpress social login 2.3.3 and enabled yahoo, twitter and facebook. But in my infrastructure i am using nginx for hosting webpage and there is another instance of nginx used for load balancing the traffic. My domain is registered and i am using non-standard port for HTTPS.

我的问题是,当通过凭据输入Yahoo凭据后,身份验证成功,并且hauth.done = Yahoo给我发送了无效的响应ERR_INVALID_REDIRECT

My issue is when after entering the Yahoo credentials by credentials are getting successfully authenticated and when hauth.done=Yahoo gives me sent an invalid response ERR_INVALID_REDIRECT

按照wsl 2.3.3中的代码,作者已经处理了非标准端口.因此,问题似乎仅限于Nginx配置.

As per the code in wsl 2.3.3 author has already taken care of non standard port. So the issue seems to be narrowed down to Nginx configuration.

请帮助!

推荐答案

这主要是由于以下一般发布的错误参数

This is mainly because of below wrong parameters posted in general

  1. redirect_to
  2. baseUrl

通常,对于HybridAuth而言,您未进入正确的页面.

In general it means with respect to HybridAuth that you are not landed on right page.

正如您所说,您正在使用Nginx作为负载均衡器和服务器.您需要检查服务器请求属性.

As you said that you are using Nginx as loadbalancer and server. You need to check your server request attributes.

您应该寻找

  1. HTTP_X_FORWARDED_PORT

  1. HTTP_X_FORWARDED_PORT

SERVER_PORT

SERVER_PORT

还有其他参数,所有这些属性插件形式正确的URL.

There can be other parameters as well, with all these attributes plugin forms correct URL.

希望有帮助:)

这篇关于wordpress社交登录插件返回具有NGINX的ERR_INVALID_REDIRECT,用于托管和负载平衡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 01:52