From d0c82f828c3ed483acb5c0dee52cdda336584d68 Mon Sep 17 00:00:00 2001 From: AqibYounasAtTkxel <94671546+AqibYounasAtTkxel@users.noreply.github.com> Date: Fri, 20 Jan 2023 20:05:10 +0500 Subject: [PATCH] CUR 4596 allow vanity URL for GPB --- vendor/tsugi/lib/src/Core/Context.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/tsugi/lib/src/Core/Context.php b/vendor/tsugi/lib/src/Core/Context.php index 80e850c83b..25d19b5665 100644 --- a/vendor/tsugi/lib/src/Core/Context.php +++ b/vendor/tsugi/lib/src/Core/Context.php @@ -282,6 +282,9 @@ public function getGradeToken(&$missing, &$subject, &$debug_log=false) } // TODO: In the future we might cache this access token perhaps in session for a while + // Vanity URL allow for ASU only - Done by Aqib Younas - CUR-4596 + $lti13_token_url = 'https://' . $_SESSION['tsugi_jwt']->body->{"https://purl.imsglobal.org/spec/lti/claim/custom"}->api_domain_url . '/login/oauth2/token'; + echo $lti13_token_url; $grade_token = LTI13::getGradeToken($issuer_client, $lti13_token_url, $lti13_privkey, $lti13_kid, $lti13_token_audience, $debug_log); return $grade_token; }