Title: Bypass CAS authentification
Last modified: August 31, 2016

---

# Bypass CAS authentification

 *  Resolved [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bypass-cas-authentification/)
 * Hi,
 * I’m trying to do the bypass CAS authentification, like describe in your website.
   I don’t understand everything it’s doing.
 * 1: how can I specify the page where my user should arrive after a local wordpress
   authentification ? I need to specify the BypassCASAuthentification page, but 
   if I do that, user log and arrive on a page “Aucun résultat”
    URL : “[https://my-website-homepage/?wp_cassify_bypass=bypass](https://my-website-homepage/?wp_cassify_bypass=bypass)“
   How does it work exactly ?
 * 2: where can you modify the css of the page “Bypass CAS authentification” ?
 * Thanks for any help
 * [https://wordpress.org/plugins/wp-cassify/](https://wordpress.org/plugins/wp-cassify/)

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

 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7368864)
 * Hi,
 * To create an authentication form to perform a local wordpress authentication 
   bypassing CAS auth, you can use this code below in a template :
 *     ```
       <?php
   
               $args = array(
                   'echo'           => true,
                   'remember'       => true,
                   'redirect' => site_url( '/?wp_cassify_bypass=bypass' ),
                   'form_id'        => 'loginform',
                   'id_username'    => 'user_login',
                   'id_password'    => 'user_pass',
                   'id_remember'    => 'rememberme',
                   'id_submit'      => 'wp-submit',
                   'label_username' => __( 'Username' ),
                   'label_password' => __( 'Password' ),
                   'label_remember' => __( 'Remember Me' ),
                   'label_log_in'   => __( 'Log In' ),
                   'value_username' => '',
                   'value_remember' => false
               );
   
               wp_login_form( $args );
           ?>
       ```
   
 * If you want exclude page from CAS authentication you can add them into white 
   list URL in Authorization rules options.
 * Best regards.
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369041)
 * Hi,
 * You’re right. There is a bug on bypass. Please update to 1.8.9.
 * Best regards.
 *  Thread Starter [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369075)
 * Hi,
 * Sorry about my late answer, priotities of my project changed so I don’t find 
   the time to test last week.
 * I update to latest version 1.9.1, and now all works well.
    Thank you very much!
 * Best regards.
 *  Thread Starter [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369079)
 * Hi again,
 * I speak to fast : there is still a bug.
    The local authentification with WordPress
   works well, but not the CAS Authentification.
 * Steps :
    – I access to the CAS login page, – After login, I back to the page 
   of authentification WordPress “[https://mysite/wp-login.php&#8221](https://mysite/wp-login.php&#8221);
   and I have to validate again my ID and password – Then, I arrived on my page 
   but not my Home Page : “No result find”, URL looks like this : ‘[https://mywebsite/?ticket=ST-11-J32JxbR9bf05bD0yh0eb-cas01.example.org&#8217](https://mywebsite/?ticket=ST-11-J32JxbR9bf05bD0yh0eb-cas01.example.org&#8217);
 * Any idea ?
 * Thanks for your help.
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369080)
 * I’ve made changes on last version. By default, authenticated user has no WordPress
   role.
 * Try to write a User Role Rule like this to push at least subscriber role to all
   authenticated users :
 * (CAS{cas_user_id} -NEQ “admin”) => role subscriber
 *  Thread Starter [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369084)
 * Hi,
 * I do this but still have the same problem.
 * When I use the CAS Authentification, I have to authenticate two times (one with
   CAS interface, second with WP interface) and I’m not arrived on my home page,
   because the ticket created by CAS is passed in parameter of the URL of my home
   page ([https://mywebsite/homepage/?ticketCAS](https://mywebsite/homepage/?ticketCAS)).
 * I’m back to a classic authentification for now, but I will try again with the
   bypass.
 * Any other idea is welcome !
    Thanks for any help
 *  Thread Starter [rleguede](https://wordpress.org/support/users/rleguede/)
 * (@rleguede)
 * [10 years ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369114)
 * Hi,
 * Sorry about late answer. I moved my website on a different server (on Linux) 
   and I try again with ByPass.
 * Everything works well now !
    Don’t know if it’s due to the server or due to my
   configuration of CAS and LDAP…
 * Thanks for your help anyway 🙂

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

The topic ‘Bypass CAS authentification’ 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/)

## Tags

 * [bypass](https://wordpress.org/support/topic-tag/bypass/)

 * 7 replies
 * 2 participants
 * Last reply from: [rleguede](https://wordpress.org/support/users/rleguede/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/bypass-cas-authentification/#post-7369114)
 * Status: resolved