插件本地插件稳定版

Microsoft Account

local_msaccountEnovation Dev Team

  • Moodle 1.9–5.1
  • 更新 2016-07-25

This plugin provides a simple client API for OAuth2-based authentication and token management for Microsoft Account. It also provides some helper functions for making REST API calls to services that use the Microsoft Account.
Note: official support for this plugin has stopped
Moodle plugins for Microsoft Services
including Office 365 and other Microsoft services
Microsoft Account API Local Plugin
This plugin provides a simple client API for OAuth2-based authentication and token management for Microsoft Account. It also provides some helper functions for making REST API calls to services that use the Microsoft Account.
Usage
Instantiation:
$msaccountapi = msaccount_api::getinstance();
Logging the user in:
$msaccount_api->is_logged_in();
Making a REST API call:
$response = $msaccount_api->myget($url);
Design details
There are several parts that make up the Microsoft Account API plugin.
Configuration
This allows an administrator to specify OAuth2 settings such as client id and secret for the Microsoft Account application associated with this Moodle installation.
msaccount_api class
This is a singleton class that provides simple wrappers for various methods provided by the msaccount_client class. Please use this class for accessing all the functionality provided by the msaccount_client class.
msaccount_client class

返回插件目录