Extend UMA
AM exposes extension points that enable you to extend UMA services when built-in functionality does not fit your deployment.
AM provides a number of extension points for extending the UMA workflow that are provided as filters and that are dynamically loaded by using the Java ServiceLoader framework during the UMA workflow.
Resource registration extension point
Use the ResourceRegistrationFilter
extension point to extend UMA resource registration functionality.
Method | Parameters | Description |
---|---|---|
|
resourceSet (type: |
Invoked before a resource is registered in the backend. Changes made to the resourceSet object at this stage will be persisted. |
|
resourceSet (type: |
Invoked after a resource is registered in the backend. Changes made to the resourceSet object at this stage will not be persisted. |
Permission request extension point
Use the PermissionRequestFilter
extension point to extend UMA permission request functionality.
Method | Parameters | Description |
---|---|---|
|
resourceSet (type: requestedScopes (type: requestingClientId (type: |
Invoked before a permission request is created. |
Authorization request extension point
Use the RequestAuthorizationFilter
extension point to extend UMA authorization functionality.
Method | Parameters | Description |
---|---|---|
|
permissionTicket (type: requestingParty (type: resourceOwner (type: requestedScope (type: |
Invoked before authorization of a request is attempted. Throws |
|
permissionTicket (type: requestingParty (type: resourceOwner (type: requestedScope (type: grantedScope (type: |
Invoked after a successful request authorization attempt. |
|
permissionTicket (type: requestingParty (type: resourceOwner (type: requestedScope (type: |
Invoked after a failed request authorization attempt. |
Resource sharing extension point
Use the ResourceDelegationFilter
extension point to extend UMA resource sharing functionality.
Method | Parameters | Description |
---|---|---|
|
umaPolicy (type: |
Invoked before creating a sharing policy for a resource. Changes to the umaPolicy object at this stage will be persisted. Throws |
|
umaPolicy (type: |
Invoked after creating a sharing policy for a resource. Changes to the umaPolicy object at this stage will not be persisted. |
|
currentUmaPolicy (type: updatedUmaPolicy (type: |
Invoked before altering the sharing policy of a resource. Changes to the updatedUmaPolicy object at this stage will be persisted. Throws |
|
umaPolicy (type: |
Invoked before deleting the sharing policy of a resource. Throws |
|
userId (type: queryFilter (type: |
Invoked before querying the resources owned or shared with a user. The userId parameter provides the ID of the user making the query request. The queryFilter parameter provides the incoming request query filter. Returns a |