Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: OAuth 2 Open Badges service.

OAuth 2 Open Badges service: Difference between revisions

From MoodleDocs
mNo edit summary
(Add screenshots)
 
Line 9: Line 9:




At this point, the OAuth 2 service should be created, and the Internal services and Discovery columns should display a green tick.
At this point, the OAuth 2 service should be created, and the Internal services and Discovery columns should display a green tick:
[[File:oauth2services.png|alt=The OAuth2 service created|left|The OAuth2 service created]]
 
 
 
 
 
 
=== Create a backpack ===
=== Create a backpack ===
# In the Moodle site, go to "Site administration > Badges > Manage backpacks"
# In the Moodle site, go to "Site administration > Badges > Manage backpacks"
# Click the "Add a new backpack" with the Backpack API URL and the Backpack URL. In API version supported leave "Open Badges v2.1" and then, in OAuth 2 services, select the OAuth 2 service you created before.
# Click the "Add a new backpack" with the Backpack API URL and the Backpack URL. In API version supported leave "Open Badges v2.1" and then, in OAuth 2 services, select the OAuth 2 service you created before.
# Save changes.
# Save changes.
[[File:managebackpack.png|alt=Create a new backpack]]




For the Badgr services, these are the URLs for their backpack:
For the Badgr services, these are their backpack URLs:
* Badgr US
* Badgr US
** Backpack API URL: https://api.badgr.com/
** Backpack API URL: https://api.badgr.com/

Latest revision as of 09:32, 14 February 2022

New feature
in Moodle 3.11!


You need to set up an OAuth 2 Open Badges service and then create a backpack using this OAuth 2 service in order to enable users to connect to their Open Badges v 2.1 compliant backpack without having to enter their credentials into Moodle.

Create OAuth 2 Open Badges service

  1. Go to "Site administration > Server > OAuth 2 services".
  2. Create a new "Open Badges" service with the Name and the service base URL. For instance, https://api.badgr.io/ for Badgr US, https://api.eu.badgr.io/ for Badgr Europe, https://api.ca.badgr.io/ for Badgr Canada or https://api.au.badgr.io/ for Badgr Australia. Leave Client ID and Client secret empty (they will be calculated when the OAuth 2 service will be created).
    • There is an issue with the current Badgr manifest because the image URL is invalid. So for Badgr services, you will also need to specify the Logo URL (otherwise it will fail): https://api.badgr.com/static/images/logo.png
  3. Save changes.


At this point, the OAuth 2 service should be created, and the Internal services and Discovery columns should display a green tick:

The OAuth2 service created




Create a backpack

  1. In the Moodle site, go to "Site administration > Badges > Manage backpacks"
  2. Click the "Add a new backpack" with the Backpack API URL and the Backpack URL. In API version supported leave "Open Badges v2.1" and then, in OAuth 2 services, select the OAuth 2 service you created before.
  3. Save changes.

Create a new backpack


For the Badgr services, these are their backpack URLs:

See also

  • The section 'Open Badge Connect API' in the dev doc OAuth 2 API