← Back to team overview

mahara-contributors team mailing list archive

[Bug 1988692] Re: Badgr API has changed and badges not displaying anymore

 

To test:

1) Have a backpack account with Badgr  https://badgr.com/backpack/badges
2) Have a badge that is in a collection that is shared to the public
3) Have generated a token for Badgr in your mahara via blocktype/openbadgedisplayer/badgrtoken.php
4) Have added an Open badges block to a page

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1988692

Title:
  Badgr API has changed and badges not displaying anymore

Status in Mahara:
  In Progress

Bug description:
  The Badgr API uses a newer token system where the token needs regular
  refreshing - the current system does not refresh the token.

  Need to
  - update the API calls to fetch new information with authentication 'Bearer' instead of 'Token'
  - record the expiry of the token and the 'refresh_token' value too
  - have a cron to refresh tokens with the 'refresh_token' value on a once a day basis but not to refresh all the tokens at once (stagger things)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1988692/+subscriptions



References