From 818ae6cb83dd147fa50c50cc481a0cd4bf059cd7 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 22 Jan 2024 12:50:28 +0500 Subject: [PATCH] add identity__email param to assertion url (#500) Co-authored-by: Muhammad Faraz Maqsood --- lms/djangoapps/badges/backends/badgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/badges/backends/badgr.py b/lms/djangoapps/badges/backends/badgr.py index d00e83b93be0..5d3beafc97c2 100644 --- a/lms/djangoapps/badges/backends/badgr.py +++ b/lms/djangoapps/badges/backends/badgr.py @@ -208,7 +208,7 @@ def _create_assertion(self, badge_class, user, evidence_url): response_json = response.json() assertion.data = response_json['result'][0] assertion.image_url = assertion.data['image'] - assertion.assertion_url = assertion.data['openBadgeId'] + assertion.assertion_url = f"{assertion.data['openBadgeId']}?identity__email={user.email}" assertion.backend = 'BadgrBackend' assertion.save() self._send_assertion_created_event(user, assertion)