You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**No new versions are planned starting from Moodle 3.3:** starting from Moodle 3.3, Oauth2 should be implemented in Moodle core. It will require you to upgrade to Moodle 3.3 and switch to the Oauth2 core authentication (and probably do some migration), but it is a great news as authentication is a really sensible matter and having Oauth2 plugins in core will guarantee their maintenance. So starting from Moodle 3.3 I recommend to use the new Oauth2 core plugins ((https://docs.moodle.org/dev/Better_Office_Integrations_3.3#Core_API_for_managing_Authorized_OAuth_Applications) ). Missing core providers will likely be implemented by someone and publish in Moodle.org plugin repository. There will probably be a new Oauth2 categories in the Moodle plugin repository. wait and see...
1
+
2
+
**Warning for Moodle 3.3 and later:** starting from Moodle 3.3, Oauth2 should be implemented in core. I suppose it likely will be a system that requires creation of individual plugins for each authentication providers. I won't be supporting this plugin starting the release of Oauth2 implementation in Moodle, so starting 3.3 (https://docs.moodle.org/dev/Better_Office_Integrations_3.3#Core_API_for_managing_Authorized_OAuth_Applications) I recommend to use new plugins using this new Moodle core system. They are likely to quickly be implemented by someone else and publish in Moodle.org plugin repository. There will probably be a new Oauth2 categories in the Moodle plugin repository.
2
3
3
4
-
4
5
5
-
This plugin adds the "Sign-in with Google / Github / Linkedin / Windows Live" buttons on the login page. The first time the user login with a social account, a new Moodle account is created.
6
+
This plugin adds the "Sign-in with Google / Facebook / Github / Linkedin / Windows Live" buttons on the login page. The first time the user login with a social account, a new Moodle account is created.
3. Install the 'vendor' folder: php composer.phar install
14
-
4. apply the changes listed in VENDOR CHANGES.md
15
+
4. apply the changes listed in VENDOR CHANGES.md (if any)
15
16
5. run the Moodle upgrade
16
17
6. in the Moodle administration, enable the plugin (Admin block > Plugins > Authentication)
17
18
7. in the plugin settings, follow the displayed instructions.
@@ -21,24 +22,17 @@ If you have any issues you can follow the Git chapter of my free mini-course [ho
21
22
22
23
### Implement your own provider (for devs)
23
24
1. add your third party provider for Oauth2 client as explain in https://github.com/thephpleague/oauth2-client
24
-
2. create /classes/provider/newprovidername.php and newprovidername_redirect.php. Then add the lang strings in /lang/en/auth_googleoauth2.php
25
-
and add the provider name to lib.php:provider_list (if you have time you can change the function logic to automatically load the classes from the provider folder
26
-
and then send me a pull request, thanks :))
27
-
28
-
### Use the table access token (for devs)
29
-
In order to store the user access tokens, you must set the config with:
Then you can use them in your own plugin. The Oauth2 plugin also trigger an event on login.
33
-
You can retrieve the access token from it too.
25
+
2. create [PLUGIN_HOME]/classes/provider/newprovidername.php and [PLUGIN_HOME]/newprovidername_redirect.php. Then add the lang strings in /lang/en/auth_googleoauth2.php.
34
26
35
27
### Composer (for devs)
36
28
The plugin does not include the 'vendor' folder as explained by [composer best practice](https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).
37
29
If you need to know more about composer, you can read [Composer Namespaces in 5 Minutes](https://jtreminio.com/2012/10/composer-namespaces-in-5-minutes/)
To like the plugin, go to the [Moodle.org repository plugin page](https://moodle.org/plugins/view/auth_googleoauth2), login and click on 'Add to my Favorites'. Find other ways to contribute on the [github plugin page](http://mouneyrac.github.io/moodle-auth_googleoauth2/).
0 commit comments