Title: Latest update causing failed authentication
Last modified: September 2, 2016

---

# Latest update causing failed authentication

 *  Resolved [jruca](https://wordpress.org/support/users/jruca/)
 * (@jruca)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/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_url` making 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://&#8217](https://&#8217); : ‘[http://&#8217](http://&#8217);).
   $_SERVER[ ‘HTTP_HOST’ ]; 94c94 < $current_url = str_replace( “http”, “https”,
   $current_url ); — > $current_url = str_replace( “http:”, “https:”, $current_url);

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/latest-update-causing-failed-authentication/#post-7722413)
 * Hi,
    Thanks for reply. I’ve integrated your fix iun 1.9.8. Keep me informed if
   it works correctly with 1.9.8.
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Latest update causing failed authentication’ is closed to new replies.

 * ![](https://ps.w.org/wp-cassify/assets/icon-256x256.png?rev=3112582)
 * [WP Cassify](https://wordpress.org/plugins/wp-cassify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cassify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cassify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cassify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cassify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cassify/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/latest-update-causing-failed-authentication/#post-7722413)
 * Status: resolved