Skip to content

Commit

Permalink
#423 - Fix oxd after httpclient upgrade in oxauth
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Mar 7, 2020
1 parent e18f318 commit 8a7985f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ private void validate(RsProtectParams params) {
// remove existing resources, overwrite=true
UmaMetadata discovery = getDiscoveryService().getUmaDiscoveryByOxdId(params.getOxdId());
String pat = getUmaTokenService().getPat(params.getOxdId()).getToken();

UmaResourceService resourceService = UmaClientFactory.instance().createResourceService(discovery, getHttpService().getClientEngine());
for (UmaResource resource : existingUmaResources) {
UmaResourceService resourceService = UmaClientFactory.instance().createResourceService(discovery, getHttpService().getClientEngine());

LOG.trace("Removing existing resource " + resource.getId() + " ...");
resourceService.deleteResource("Bearer " + pat, resource.getId());
LOG.trace("Removed existing resource " + resource.getId() + ".");
Expand Down

0 comments on commit 8a7985f

Please sign in to comment.