WP Manifestindependent plugin directory
manifest / users / galogin-redirect-filter

Google Apps Login Redirect Filter

Plugin to fix Google Apps Login Premium's redirect on Pantheon server cluster

by JB Christy · github.com/su-ucomm/galogin-redirect-filter · website

★ 0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/su-ucomm/galogin-redirect-filter/archive/refs/heads/master.zip

When someone attempts to visit a private page that requires a user to login, the Google Apps Login plugin intercepts the request and assigns a page to redirect to after the login handshake. This works perfectly fine in most instances. However, in a Pantheon server cluster, the variable the GA Login plugin uses to identify the host, $_REQUEST['state'], instead points to a specific webhead in the server cluster. This results in a mal-formed url, e.g. ?redirect_to=https://appserver-3b68c6bd-nginx-a6325ef8d3ed4f7ba61d39c86c58a47e:16301?page_id=123. Attempts to redirect to the specific webhead fail, and the user ends up in the backend, rather than on the page they were attempting to access when the login was requested. This plugin adds a filter that replaces the webhead with the correct host in the redirect url, e.g. ?redirect_to=https://example.com?page_id=123.