Badgr API has changed and badges not displaying anymore
Bug #1988692 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
21.04 |
Fix Released
|
High
|
Unassigned | |||
21.10 |
Fix Released
|
High
|
Unassigned | |||
22.04 |
Fix Released
|
High
|
Unassigned | |||
22.10 |
Fix Released
|
High
|
Robert Lyon |
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)
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → High |
milestone: | none → 22.10.0 |
Changed in mahara: | |
assignee: | nobody → Robert Lyon (robertl-9) |
no longer affects: | mahara |
To post a comment you must log in.
To test:
1) Have a backpack account with Badgr https:/ /badgr. com/backpack/ badges openbadgedispla yer/badgrtoken. php
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/
4) Have added an Open badges block to a page