mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of github.com:wso2/carbon-device-mgt
This commit is contained in:
commit
f830a14a8b
@ -65,6 +65,11 @@ 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 for request path.
|
||||||
|
int urlParamIndex = url.indexOf('?');
|
||||||
|
if(urlParamIndex > 0) {
|
||||||
|
url = url.substring(0, urlParamIndex);
|
||||||
|
}
|
||||||
|
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
properties.put(PermissionBasedScopeValidator.URL_PROPERTY, url);
|
properties.put(PermissionBasedScopeValidator.URL_PROPERTY, url);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user