Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
Add mapping for NRP service versions claim
Do not reset HTTP object if obtaining an acces token fails
  • Loading branch information
spvickers committed Jan 25, 2021
1 parent c911ac1 commit 0b9a7f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/Service/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0b9a7f8

Please sign in to comment.