From 0b9a7f87a6884b9ac204e8cf91d0c197b49bf6cd Mon Sep 17 00:00:00 2001 From: Stephen Vickers Date: Mon, 25 Jan 2021 20:44:41 +0000 Subject: [PATCH] Minor bug fixes Add mapping for NRP service versions claim Do not reset HTTP object if obtaining an acces token fails --- src/Service/Service.php | 1 - src/Util.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/Service.php b/src/Service/Service.php index 1c2e755..015fc34 100644 --- a/src/Service/Service.php +++ b/src/Service/Service.php @@ -150,7 +150,6 @@ public function send($method, $parameters = array(), $body = null) $accessToken->get($this->scope, true); $retried = true; if (!$accessToken->hasScope($this->scope)) { - $this->http = new HttpMessage($url, $method, $body); break; } } diff --git a/src/Util.php b/src/Util.php index 02d9c6f..6c5bd7b 100644 --- a/src/Util.php +++ b/src/Util.php @@ -99,6 +99,7 @@ final class Util 'tool_consumer_instance_url' => array('suffix' => '', 'group' => 'tool_platform', 'claim' => 'url'), 'tool_state' => array('suffix' => '', 'group' => 'tool', 'claim' => 'state'), 'custom_context_memberships_v2_url' => array('suffix' => 'nrps', 'group' => 'namesroleservice', 'claim' => 'context_memberships_url'), + 'custom_nrps_versions' => array('suffix' => 'nrps', 'group' => 'namesroleservice', 'claim' => 'service_versions', 'isArray' => true), 'custom_lineitems_url' => array('suffix' => 'ags', 'group' => 'endpoint', 'claim' => 'lineitems'), 'custom_lineitem_url' => array('suffix' => 'ags', 'group' => 'endpoint', 'claim' => 'lineitem'), 'custom_ags_scopes' => array('suffix' => 'ags', 'group' => 'endpoint', 'claim' => 'scope', 'isArray' => true),