Loading cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/ACScopeValidator.java +5 −13 Original line number Original line Diff line number Diff line Loading @@ -90,19 +90,11 @@ public class ACScopeValidator extends DelegationToken.ScopeValidator public void verifyScope(URI scope, String requestURI) public void verifyScope(URI scope, String requestURI) throws InvalidDelegationTokenException throws InvalidDelegationTokenException { { try if (!requestURI.endsWith(RESET_PASSWORD_SCOPE) && !scope.toASCIIString().equals(RESET_PASSWORD_SCOPE)) { { // validate service endpoint throw new InvalidDelegationTokenException("invalid scope: " if ((requestURI.endsWith(RESET_PASSWORD_SCOPE)) && + scope); (scope.toASCIIString().equals(RESET_PASSWORD_SCOPE))) { return; // OK } } } catch(Exception ignore) { } throw new InvalidDelegationTokenException("invalid scope: " + scope); } } } } Loading
cadcAccessControl-Server/src/ca/nrc/cadc/ac/server/ACScopeValidator.java +5 −13 Original line number Original line Diff line number Diff line Loading @@ -90,19 +90,11 @@ public class ACScopeValidator extends DelegationToken.ScopeValidator public void verifyScope(URI scope, String requestURI) public void verifyScope(URI scope, String requestURI) throws InvalidDelegationTokenException throws InvalidDelegationTokenException { { try if (!requestURI.endsWith(RESET_PASSWORD_SCOPE) && !scope.toASCIIString().equals(RESET_PASSWORD_SCOPE)) { { // validate service endpoint throw new InvalidDelegationTokenException("invalid scope: " if ((requestURI.endsWith(RESET_PASSWORD_SCOPE)) && + scope); (scope.toASCIIString().equals(RESET_PASSWORD_SCOPE))) { return; // OK } } } catch(Exception ignore) { } throw new InvalidDelegationTokenException("invalid scope: " + scope); } } } }