June 2017
Beginner to intermediate
368 pages
8h 31m
English
WordPress handles two types of user authentication: cookies and OAuth. If you are not familiar with them, cookies are packets of data stored at the client end (for example, the browser). By default, WordPress uses cookies to cache the basic details of the currently logged in user. Could we access this information to determine who the current user is and authenticate them in Moodle? The short answer is no--and when considering what a massive security issue cookies are then you will understand why: it simply isn't possible (and nor would it be prudent) for an application running in one domain to directly access the data of an application running in another. OAuth, however, is a topic we will return to shortly.
Read now
Unlock full access