June 2017
Beginner to intermediate
368 pages
8h 31m
English
So far we have spent a good deal of time investigating Moodle's internal APIs but did you know that both Moodle and WordPress implement their own externally facing APIs? We will be investigating Moodle's Web Services API later in Chapter 9, Moodle Analytics. The WordPress API, WP-API, is documented at: http://v2.wp-api.org/. By employing web services, we can have Moodle delegate authentication to WordPress (regardless of--within reason--where in the world WordPress is running). Our WordPress installation then becomes our single sign on authority.
However, how do we authenticate against WordPress? Recall that WordPress uses both cookie and OAuth authentication. In the next section, we learn more about OAuth.
Read now
Unlock full access