Commit 8f9b534e authored by jun's avatar jun
Browse files

Merge branch 'MDL-72552' of https://github.com/spvickers/moodle

parents a1d7bfcd 6fa817db
......@@ -435,7 +435,7 @@ function lti_get_jwt_claim_mapping() {
'claim' => 'url',
'isarray' => false
],
'custom_context_memberships_url' => [
'custom_context_memberships_v2_url' => [
'suffix' => 'nrps',
'group' => 'namesroleservice',
'claim' => 'context_memberships_url',
......
......@@ -544,6 +544,7 @@ class memberships extends \mod_lti\local\ltiservice\service_base {
if (isset($tool->{$this->get_component_id()})) {
if ($tool->{$this->get_component_id()} == parent::SERVICE_ENABLED && $this->is_used_in_context($typeid, $courseid)) {
$launchparameters['context_memberships_url'] = '$ToolProxyBinding.memberships.url';
$launchparameters['context_memberships_v2_url'] = '$ToolProxyBinding.memberships.url';
$launchparameters['context_memberships_versions'] = '1.0,2.0';
}
}
......
......@@ -934,7 +934,7 @@ class mod_lti_locallib_testcase extends advanced_testcase {
'claim' => 'url',
'isarray' => false
],
'custom_context_memberships_url' => [
'custom_context_memberships_v2_url' => [
'suffix' => 'nrps',
'group' => 'namesroleservice',
'claim' => 'context_memberships_url',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment