Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:2.1:applications:wordpress [2018/02/01 17:46] (current)
Line 1: Line 1:
 +====== Wordpress ======
  
 +{{ :​applications:​wordpress_logo.png?​nolink |}}
 +
 +===== Presentation =====
 +
 +[[https://​wordpress.org/​|Wordpress]] is a famous tool to create websites.
 +
 +A lot of authentication plugins are available. We propose here to use CAS protocol and [[https://​wordpress.org/​plugins/​wp-cassify/​|WP Cassify]] plugin.
 +
 +===== CAS =====
 +
 +==== Plugin installation ====
 +
 +Go in Wordpress admin and install [[https://​wordpress.org/​plugins/​wp-cassify/​|WP Cassify]] plugin.
 +
 +==== Plugin configuration ====
 +
 +The full documentation is available on https://​wpcassify.wordpress.com/​
 +
 +=== General settings ===
 +
 +Configure CAS server and CAS version:
 +  * CAS Server base url : https://​auth.example.com/​cas/​
 +  * CAS Version protocol: 2
 +
 +Other options are correct by default.
 +
 +=== User Roles Settings ===
 +
 +You can assign WP Roles depending on values sent by CAS.
 +
 +The rules syntax is quite special, you can use it or you can just define macros on LL::NG side and send them trough CAS to keep simple rules on WP side.
 +
 +For example create a macro ''​role_wordpress_admin''​ which contains ''​1''​ if the user is admin on WP, and send it in CAS attributes.
 +
 +Then create this rule on WP side:
 +<​code>​administrator|(CAS{role_wordpress_admin} -EQ "​1"​)</​code>​