fproject/moodle-auth_googleoauth2
Composer 安装命令:
composer require fproject/moodle-auth_googleoauth2
包简介
OAuth2 library for moodle
README 文档
README
This plugin adds the "Sign-in with Google / Facebook / Github / Linkedin / Windows Live / id.projectkit.net" buttons on the login page. The first time the user login with a social account, a new Moodle account is created.
It forked from moodle-auth_googleoauth2
And this is Offcial moodle plugin website
Requirements
PHP 5.5
Installation:
-
Clone plugin:
-
Go to folder moodle\auth\
-
Git: git clone https://github.com/fproject/moodle-auth_googleoauth2.git
-
Rename dir moodle-auth_googleoauth2 to googleoauth2.
-
-
Config, go to folder googleoauth2:
-
The first, chang config.php
-
The second: composer update
-
-
Enable plugin:
-
Login Moodle as admin.
-
Go to Site administration/ Advanced features / Plugins / Authentication / Manage authentication: Enable Oauth2 plugin.
-
In setting of Oauth2, insert clientId and secret whose your registered with id.projectkit.net
-
Ok, good luck :)
-
Update:
-
Login with accesstoken
- You can login moodle with accesstoken, example about structure of link:
http://localhost/moodle/login/index.php?authprovider=vp&accessToken=XXXX
-
End point revice revokeToken
- Endpoint address:
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-08-12