Skip to content

Commit

Permalink
remove authz service check for refresh requests (AthenZ#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
havetisyan authored Jul 6, 2018
1 parent 16d3176 commit ab0637d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions servers/zts/src/main/java/com/yahoo/athenz/zts/ZTSImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2355,13 +2355,6 @@ public Identity postInstanceRefreshRequest(ResourceContext ctx, String domain,

Principal principal = ((RsrcCtxWrapper) ctx).principal();

// verify that this is not an authorized service principal
// which is only supported for get role token operations

if (isAuthorizedServicePrincipal(principal)) {
throw forbiddenError("Authorized Service Principals not allowed", caller, domain);
}

String fullServiceName = domain + "." + service;
final String principalName = principal.getFullName();
boolean userRequest = false;
Expand Down

0 comments on commit ab0637d

Please sign in to comment.