FIWARE / api-umbrella

Open source API management platform
https://fiware-api-umbrella.readthedocs.io/
MIT License
2 stars 7 forks source link

Add NGSI-v2 compatibility for attribute-based authorization modes #18

Open dwendland opened 2 years ago

dwendland commented 2 years ago

The current implementation in https://github.com/FIWARE/api-umbrella/blob/master/src/api-umbrella/proxy/middleware/policy_validator_cb_ishare_auto.lua only supports NGSI-LD requests. This should be enhanced to also support v2 requests.

The corresponding functions evaluating the policy parameters should be added to the utility module implemented in #16 .

Support should be also added to the iSHARE-compliant authorization mode https://github.com/FIWARE/api-umbrella/blob/master/src/api-umbrella/proxy/middleware/policy_validator_cb_ishare_auto.lua

It needs to be investigated whether the authorization mode should handle automatically both types (v2 and LD) and whether there should be an option to configure that on the UI, e.g. in the API-Backend UI.