Merge branch 'fix/permissions' into 'master'

Fix identity server connect permission

See merge request entgra/carbon-device-mgt!887
master
Pahansith Gunathilake 3 years ago
commit d1754b465e

@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication
* @return constructed error message * @return constructed error message
*/ */
private String constructErrorMessage(HttpResponse response) { private String constructErrorMessage(HttpResponse response) {
String msg = "Error occurred while calling SP Applications API"; String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode();
if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) { if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
msg += ". Make sure provided identity Server credentials are valid"; msg += ". Make sure provided identity Server credentials are valid";
} }

@ -50,6 +50,7 @@
<Scope>perm:app:publisher:service-provider:create</Scope> <Scope>perm:app:publisher:service-provider:create</Scope>
<Scope>perm:app:publisher:service-provider:attach</Scope> <Scope>perm:app:publisher:service-provider:attach</Scope>
<Scope>perm:app:publisher:service-provider:detach</Scope> <Scope>perm:app:publisher:service-provider:detach</Scope>
<Scope>perm:app:publisher:service-provider:connect</Scope>
<Scope>perm:app:publisher:view</Scope> <Scope>perm:app:publisher:view</Scope>
<Scope>perm:app:publisher:update</Scope> <Scope>perm:app:publisher:update</Scope>
<Scope>perm:app:store:view</Scope> <Scope>perm:app:store:view</Scope>

@ -61,6 +61,7 @@
<Scope>perm:app:publisher:service-provider:create</Scope> <Scope>perm:app:publisher:service-provider:create</Scope>
<Scope>perm:app:publisher:service-provider:attach</Scope> <Scope>perm:app:publisher:service-provider:attach</Scope>
<Scope>perm:app:publisher:service-provider:detach</Scope> <Scope>perm:app:publisher:service-provider:detach</Scope>
<Scope>perm:app:publisher:service-provider:connect</Scope>
<Scope>perm:app:publisher:view</Scope> <Scope>perm:app:publisher:view</Scope>
<Scope>perm:app:publisher:update</Scope> <Scope>perm:app:publisher:update</Scope>
<Scope>perm:app:store:view</Scope> <Scope>perm:app:store:view</Scope>

Loading…
Cancel
Save