Merge branch 'fix/permissions' into 'master'

Fix identity server connect permission

See merge request entgra/carbon-device-mgt!887
This commit is contained in:
Pahansith Gunathilake 2022-05-09 04:36:44 +00:00
commit d1754b465e
3 changed files with 3 additions and 1 deletions

View File

@ -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";
} }

View File

@ -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>

View File

@ -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>