Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Oauth2 authentication: Difference between revisions

From MoodleDocs
(Created page with "This document describes the functional and technical specification of Moodle Oauth2 plugin(s). Oauth2 plugin(s) will allow a user to authenticate in Moodle with a identity provid...")
 
(Remove stale info.)
 
(51 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This document describes the functional and technical specification of Moodle Oauth2 plugin(s). Oauth2 plugin(s) will allow a user to authenticate in Moodle with a identity provider that implement Oauth2, like Google or Facebook.
This information on this page has been archived because it is no longer current. For information on OAuth2 see [[OAuth2_Services]].


= What is Oauth2 =
To see the infomation previously on this page check the history.
 
== See also ==
* [http://oauth.net/2/ Oauth2 specification]
 
= What is the user's benefice =
The user can connect in Moodle with a Google/Facebook/... account. Login in Moodle becomes 1 click on a Google/Facebook/... button.
 
=Why implementing Oauth2 which is still in Draft version=
The main reason we choose Oauth2 is that massive identity providers as Google already start to [https://developers.google.com/accounts/docs/OAuth deprecate Oauth1] or only use Oauth2 (Facebook). Oauth2 has also for benefit over Oauth1 to be simpler to implement for the client. However at the moment, Oauth2 is on a [http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/ rocky road]. The specification are still marked as Draft, and major providers as Facebook or Google implement their own version. But at the end they are globally similar, and we will be able to reuse a major part of our code for each providers.
 
= Functional specification =
 
== User ==
=== User authenticates for the first time in Moodle ===
=== User already has an account ===
==== The email address sent by the identity provider is known by Moodle ====
==== The email address is unknown ====
== Administration ==
The administrator wants to:
* enable the plugin(s)
* set Oauth2 client id / Oauth2 client secret
* allow user account creation
* set lockable fields
* deny email addresses
* bypass the deny email addresses global settings (for example allow hotmail registration by Oauth2 but disallow it for manual to avoid spammer)
* allow email addresses
 
= Technical specification =
 
== One plugin by provider or One plugin for all providers ==

Latest revision as of 01:58, 23 May 2017

This information on this page has been archived because it is no longer current. For information on OAuth2 see OAuth2_Services.

To see the infomation previously on this page check the history.