Title: Authentication failure
Last modified: November 3, 2016

---

# Authentication failure

 *  Resolved [zatch11](https://wordpress.org/support/users/zatch11/)
 * (@zatch11)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/authentication-failure-3/)
 * I am getting an authentication error for any URLs that contain an edit action,
   
   It works fine for all other type URLs that require auth.
 * This doesn’t work
    [http://somedomain.com/sub/forms/outside-consulting/?frm_action=edit&entry=3492](http://somedomain.com/sub/forms/outside-consulting/?frm_action=edit&entry=3492)
 * The response is:
    <cas:serviceResponse xmlns:cas=’[http://www.yale.edu/tp/cas’&gt](http://www.yale.edu/tp/cas’&gt);
   <cas:authenticationFailure code=’INVALID_SERVICE’> ticket ‘ST-Nve51bdprRG42CUx0iXKfSFTtJuhokwE-
   cas-node-1’ not recognized </cas:authenticationFailure> </cas:serviceResponse
   >
 * The resulting URL is: [http://somedomain.com/sub/forms/outside-consulting/?frm_action=edit&entry=3492=&ticket=ST-Nve51bdprRG42CUx0iXKfSFTtJuhokwE-cas-node-1](http://somedomain.com/sub/forms/outside-consulting/?frm_action=edit&entry=3492=&ticket=ST-Nve51bdprRG42CUx0iXKfSFTtJuhokwE-cas-node-1)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [zatch11](https://wordpress.org/support/users/zatch11/)
 * (@zatch11)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/authentication-failure-3/#post-8440063)
 * Actually it appears any URLs with parameters don’t redirect correctly after CAS
   authenticates. Any help with this would be greatly appreciated.
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/authentication-failure-3/#post-8473687)
 * Hi,
    I’m sorry but i’ve not free time for the moment. It may be an incompatibility
   with activated plugins in tour blog and WP Cassify. Your URL is malformed because
   it’s ends with equal after 3492 parameter.
 * It seems you’ve a plugin wich interacts with URL and disallow WP Cassify working
   correctly.
 * Best regards.
 *  [parakedista](https://wordpress.org/support/users/parakedista/)
 * (@parakedista)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/authentication-failure-3/#post-8734500)
 * Hi [@zatch11](https://wordpress.org/support/users/zatch11/) we had the same problem,
   we found that there’s one rawurlencode that is causing this inside the wp_cassify_utils.
   php.
 * You can find it in this function: wp_cassify_encode_query_in_url in line 181.
   `
   $query = rawurlencode( parse_url( $url , PHP_URL_QUERY ) );` We removed it and
   that issue was solved
 * Hope this helps you.
 * P.S.: Also the function above (wp_cassify_strip_get_parameter) is doing almost
   the same as this function (we don’t understand why there’s so much duplication)
   but doesn’t have the rawurlencode.
 * Cheers,
    -  This reply was modified 9 years, 4 months ago by [parakedista](https://wordpress.org/support/users/parakedista/).
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/authentication-failure-3/#post-8843416)
 * Hi,
    Thanks parakedista, I will apply your fix in next release.
 * Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Authentication failure’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/authentication-failure-3/#post-8843416)
 * Status: resolved