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

From MoodleDocs

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