Debian Codegraph @

doc/sources/admin/applications/wordpress.rst

raw
1 Wordpress
2 =========
3
4 |image0|
5
6 Presentation
7 ------------
8
9 `Wordpress <https://wordpress.org/>`__ is a famous tool to create
10 websites.
11
12 A lot of authentication plugins are available. We propose here to use
13 CAS protocol and `WP
14 Cassify <https://wordpress.org/plugins/wp-cassify/>`__ plugin.
15
16 CAS
17 ---
18
19 Plugin installation
20 ~~~~~~~~~~~~~~~~~~~
21
22 Go in Wordpress admin and install `WP
23 Cassify <https://wordpress.org/plugins/wp-cassify/>`__ plugin.
24
25 Plugin configuration
26 ~~~~~~~~~~~~~~~~~~~~
27
28 The full documentation is available on https://wpcassify.wordpress.com/
29
30 General settings
31 ^^^^^^^^^^^^^^^^
32
33 Configure CAS server and CAS version:
34
35 - CAS Server base url : https://auth.example.com/cas/
36 - CAS Version protocol: 2
37
38 Other options are correct by default.
39
40 User Roles Settings
41 ^^^^^^^^^^^^^^^^^^^
42
43 You can assign WP Roles depending on values sent by CAS.
44
45 The rules syntax is quite special, you can use it or you can just define
46 macros on LL::NG side and send them through CAS to keep simple rules on
47 WP side.
48
49 For example create a macro ``role_wordpress_admin`` which contains ``1``
50 if the user is admin on WP, and send it in CAS attributes.
51
52 Then create this rule on WP side:
53
54 ::
55
56 administrator|(CAS{role_wordpress_admin} -EQ "1")
57
58 .. |image0| image:: /applications/wordpress_logo.png
59 :class: align-center
60