Skip to content

This plugin is designed to retrieve data from various APIs for use by other RECIT plugins.

License

Notifications You must be signed in to change notification settings

SN-RECIT-formation-a-distance/moodle-tool_recitapis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tool_recitapis

This plugin is designed to retrieve data from various APIs for use by other RECIT plugins.

GRICS API

Espace API - GRICS

This function aims to obtain data from GRICS according to user rights in order to enroll students in courses or work plans.

Before this plugin can read the GRICS API, you need to create your GRICS application in the GRICS API espace. Once you are logged into the GRICS espace, two applications must be created.

The first application will be used for reading data on the client side.

Step 1

You will need to fill in the following fields:

  • Application name
  • Authorization type: Native and browser-based (Authorization code + PKCE)
  • Scopes: apiclients (API Espace), openid (my user ID) and profile (my user profile: last name, first name, user name)
  • URI addresses for redirection after login: YOUR_SERVER/admin/tool/recitapis/view.php
  • Authentication options: Microsoft
  • Link to terms of use (French)
  • Link to privacy policy (French)

Keep the client ID and secret of your application in a safe place. You will need to add them to the parameters of this plugin.

Step 2

Subscribe to the following product(s): Plateforme d'identité Mozaïk (5.1.10).

Step 3

Once GRICS confirms that the subscriptions are complete, the final step is to give consent for your application.

Simply copy the consent URL and paste it into any web browser. If you have permission, you will be able to grant consent.


The second application will be used for reading data on the server side.

Step 1

You will need to fill in the following fields:

  • Application name
  • Authorization type: Machine/Robot (client credentials) and PKCE server (Authorization code + PKCE + secret client)
  • Scopes: apiclients (API Espace)
  • URI addresses for redirection after login: YOUR_SERVER
  • Link to terms of use (French)
  • Link to privacy policy (French)

Keep the client ID and secret of your application in a safe place. You will need to add them to the parameters of this plugin.

Step 2

Subscribe to the following product(s): Élève (5.5.5).

Step 3

Grant the consent in the same way you did for the previous application.

About

This plugin is designed to retrieve data from various APIs for use by other RECIT plugins.

Resources

License

Stars

Watchers

Forks

Packages

No packages published