Skip to content
Permalink
Browse files
Merge pull request #16 from myrle-krantz/develop
Created a new permittable group for applications to request permissions
  • Loading branch information
myrle-krantz committed May 23, 2017
2 parents d19e1a1 + 92926e4 commit 270e650ee8f8c06f85b99245a21a2efc81abc9b7
Showing 2 changed files with 2 additions and 0 deletions.
@@ -23,4 +23,5 @@ public interface PermittableGroupIds {
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";
}
@@ -108,6 +108,7 @@ public ApplicationRestController(
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,

0 comments on commit 270e650

Please sign in to comment.