-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orion-Wilma-Authzforce #10
Comments
Yes it could be done, but you would need to customize the PEP Proxy code to do it. |
how could i do it? |
https://github.com/FIWARE/tutorials.Step-by-Step/blob/master/context-provider/lib/azf.js#L12 provides an example of an application (in this case the Tutorial app) creating a custom XACML request for Authzforce. The equivalent code in the PEP Proxy is here: https://github.com/ging/fiware-pep-proxy/blob/master/lib/azf.js#L92 You could check the flow of the code to find out where
Obviously Authzforce would need a rule which checked the additional value as well, much like the eMail example in the tutorial |
But, how achieve i attributes of a predefined entity? |
To read attributes of an entity or entities use the let productsInStore = await ngsiLD.listEntities(
{
type: 'Product',
options: 'keyValues',
attrs: 'name,price',
id: stockedProducts.join(',')
},
headers
); Effectively you're just sending a request like: curl -L -X GET 'http://localhost:1026/v2/entities/urn:ngsi-ld:Store:001?options=keyValues&attrs=name' To generate the XACML you will have to do that yourself - but you can follow the eMail example as a template. |
thank you, I achieve it. |
If you are using XACML then create a rule However, this complexity is no longer necessary, as this issue #7 points out. You could just use the Keyrock simple Policy Decision Point and supply a regex. More info here |
hello, I would like to obtain in wilma the attributes of an entity already defined in orion based on its id (in root.js for example) . In order to evaluate those attributes in authzforce. Could it be done?
The text was updated successfully, but these errors were encountered: