Latest update causing failed authentication
-
The latest update, 1.9.7, results in CAS Authentication Failed! message. We are running WordPress behind an F5 load-balancer with SSL-offload. We have X-Forwarded-Proto and X-Forwarded-Port defined on incoming server traffic, which causes the new code for “nginx behind AWS loadbalancer” to fire. In this new block (classes/wp_cassify_utils.php), the protocol is not set for
$current_urlmaking the validate call fail as it does not match a valid service identifier. Below is a diff of the changes I made to work for our environment. Perhaps this change will work for AWS as well?Thanks again for the great plugin.
# diff wp-cassify_197/classes/wp_cassify_utils.php wp-cassify_custom/classes/wp_cassify_utils.php
86c86
< $current_url = $_SERVER[ ‘HTTP_HOST’ ];
—
> $current_url = ( @$_SERVER[ ‘HTTPS’ ] == ‘on’ ? ‘https://’ : ‘http://’ ) . $_SERVER[ ‘HTTP_HOST’ ];
94c94
< $current_url = str_replace( “http”, “https”, $current_url );
—
> $current_url = str_replace( “http:”, “https:”, $current_url );
The topic ‘Latest update causing failed authentication’ is closed to new replies.