Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sakuraiyuta/wordpress-cas

CAS authentication plugin for wordpress. This plugin is a modification of "CAS Authentication plugin" written by candrews, sms225.
https://github.com/sakuraiyuta/wordpress-cas

Last synced: 4 days ago
JSON representation

CAS authentication plugin for wordpress. This plugin is a modification of "CAS Authentication plugin" written by candrews, sms225.

Awesome Lists containing this project

README

        

=== Plugin Name ===
Contributors: candrews, sms225
Tags: authentication, CAS, phpCAS
Requires at least: 2.5.1
Tested up to: 3.0.1
Stable tag: 2.3

Authenticate users using the phpCAS package (http://www.ja-sig.org/wiki/display/CASC/phpCAS).

== Description ==

Central Authentication System (CAS) is a single signon service provided by some universities. Read about it here.

phpCAS is a client for the CAS service. You can read about that here. You have to download it separately and point this script to it.

This plugin uses some hooks in WordPress's authentication system to bypass the normal login screen and authenticate over CAS instead. Note that logged-in state is still maintained in cookies, and user entries are created in the local database.

== Installation ==

1. Download phpCAS to a directory on your web server. You'll want to comment out lines 62 - 104 of CAS.php unless you plan to configure and use the advanced PGT features.
2. Upload cas-authentication.php to the wp-content/plugins/ directory of your wordpress installation.
3. Log in as administrator and activate the plugin. Go to the Options tab and configure the plugin. STAY LOGGED IN to your original administrator account. You won't be able to log back in once you log out.
4. Open a window in a different browser (i.e. Internet Explorer if you were using FireFox), or on another computer. Log in to your blog to make sure that it works.
5. In the first browser window, make the newly created CAS user the new administrator. You can log out now. (Alternately, you can change some entries in the wp_usermeta table to make a new user the admin)
6. Disable Options -> General -> Anyone can register (they won't be able to)

== Frequently Asked Questions ==

= Who made this? =

Thanks to this guy for working to make WordPress's login system so flexible, and this plugin possible.

Thanks to Lou Rinaldi for early feedback and encouragement.

Thanks to Ioannis Yessios from Yale ITS for adding the administrator interface.

Thanks to Craig Andrews for providing phpCAS 0.6.0 support.

= What versions of phpCAS does this support? =

It has been tested with phpCAS 1.1.2, the most recent stable release. We recommend that you use this version.

= What versions of PHP does this support? =

This plugin should work wtih PHP 4.4 through 5.3.

= Can this be used with an LDAP server to fill in user data? =

Yes. There are several LDAP plugins for WordPress and this plugin doesn't attempt integration with any of them, but adding that feature is easy.

One option is Kane IT's plugin. Craig recommends installing that. There's some commented-out code on line 102 that should help you interface.