This plugin needs an update. Specifically the wpcas.php
file. Line 91 should be changed to public static function authenticate() {
instead of function authenticate() {
, and line 99 should be changed to if ( $user = get_user_by( 'login', phpCAS::getUser() )){ // user
since get_userdatabylogin()
is deprecated.
There are also a couple of warnings / notices when logging out, but those two should definitely be fixed because the error messages actually prevent login.
]]>Rosy1280 posted about how wpCAS doesn’t work with multisite a few years ago. Here’s how to make it work:
open wpcas.php in an editor and change line 200 from:
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?page=' . basename(__FILE__); ?>&updated=true">
to:
<form method="post" action="<?php echo 'options-general.php?page=' . basename(__FILE__); ?>&updated=true">
]]>
Thank you for this module. It worked great for me but I needed a few extra features like CAS gateway mode (auto-login to wordpress on first page load).
See my fork on github:
https://github.com/neopeak/wpcas
I made a pre-release availabe.
I will add a few more features in the coming days.
]]>Lines 104 and 108 of wpCAS.php
need to be changed from wp_redirect
to wp_safe_redirect
. Without this, the plugin kicks into a reauth=1
loop of DOOM.
After uploading the CAS directory of phpCAS 1.3.1, it works.
]]>We have this plugin working wonderfully for the majority of our users (on an MU site). Unfortunately some have started trying to blog via iOS apps (the official WordPress app as well as Blogsy), and none have been able to authenticate. It appears the problem is the CAS authentication.
Has anyone had luck authenticating to a wpCAS enabled blog via an iOS app or other XMLRPC publishing service? Any information would be greatly appreciated.
]]>wp-login.php too many redirects
i use cas for access wordpress (apache) an i’ve used the plugin to sso to wordpress. with 3.3.1 ints not working any more.
when i click login the browser hangs with too many redirects wp-login.php
config:
https://wordpressserver
https//casserver
I’m trying to set up wpcas on my new multisite.
i activated it first for the entire network but wpcas was telling me that it wasn’t set up on a particular blog. i then went in and tried to activate the plugin for individual blogs when i noticed that it wasn’t letting me update the wpcas information for the individual blogs. whenever i hit the update options button it switches me back to the root level blog rather than updating the options for the blog i’m currently in.
i haven’t delved into the code yet to see if i can fix it, i thought i would turn to the forums first and see if anyone else had run into this and fixed the problem.
]]>