commit | 02d775cec84386ee194f43d56affd4c8555b92b8 | [log] [tgz] |
---|---|---|
author | myrle-krantz <mkrantz@mifos.org> | Sun May 21 17:36:53 2017 +0200 |
committer | myrle-krantz <mkrantz@mifos.org> | Sun May 21 17:36:53 2017 +0200 |
tree | 9d5376047da8ad89993b2a896f4ab1d297294f28 | |
parent | 242aec0cb9ce660ae1967fa2041b0da70845ab1a [diff] |
Created a new permmittable group for applications to request permission to access other applications with.
diff --git a/api/src/main/java/io/mifos/identity/api/v1/PermittableGroupIds.java b/api/src/main/java/io/mifos/identity/api/v1/PermittableGroupIds.java index 74b2eda..4d416cc 100644 --- a/api/src/main/java/io/mifos/identity/api/v1/PermittableGroupIds.java +++ b/api/src/main/java/io/mifos/identity/api/v1/PermittableGroupIds.java
@@ -23,4 +23,5 @@ String IDENTITY_MANAGEMENT = "identity__v1__users"; String ROLE_MANAGEMENT = "identity__v1__roles"; String SELF_MANAGEMENT = "identity__v1__self"; + String APPLICATION_SELF_MANAGEMENT = "identity__v1__app_self"; } \ No newline at end of file
diff --git a/service/src/main/java/io/mifos/identity/rest/ApplicationRestController.java b/service/src/main/java/io/mifos/identity/rest/ApplicationRestController.java index 24af6d7..9eb9680 100644 --- a/service/src/main/java/io/mifos/identity/rest/ApplicationRestController.java +++ b/service/src/main/java/io/mifos/identity/rest/ApplicationRestController.java
@@ -108,6 +108,7 @@ consumes = {MediaType.ALL_VALUE}, produces = {MediaType.APPLICATION_JSON_VALUE}) @Permittable(value = AcceptedTokenType.SYSTEM) + @Permittable(groupId = io.mifos.identity.api.v1.PermittableGroupIds.APPLICATION_SELF_MANAGEMENT) public @ResponseBody ResponseEntity<Void> createApplicationPermission(@PathVariable("applicationidentifier") @Nonnull String applicationIdentifier,