Added comments.

revert-70aa11f8
harshanl 9 years ago
parent 52fab37c61
commit b3e0f804b0

@ -65,7 +65,7 @@ public class PermissionBasedScopeValidator extends OAuth2ScopeValidator {
int idx = resource.lastIndexOf(':'); int idx = resource.lastIndexOf(':');
String url = resource.substring(0, idx); String url = resource.substring(0, idx);
String method = resource.substring(++idx, resource.length()); String method = resource.substring(++idx, resource.length());
//This is to remove the url params //This is to remove the url params for request path.
int urlParamIndex = url.indexOf('?'); int urlParamIndex = url.indexOf('?');
if(urlParamIndex > 0) { if(urlParamIndex > 0) {
url = url.substring(0, urlParamIndex); url = url.substring(0, urlParamIndex);

Loading…
Cancel
Save