Closed DemianTinkiel closed 4 years ago
Yes, this is by design, only standalone policysets (with URL like .../policies/P1 for latest version or .../policies/P1/X.Y for specific version X.Y) may be used in policy references from other policies. FYI, the policy provider used in this case is FlatFileDAORefPolicyProviderModule. Could be improved.
I see, thanks for the answer. If you have any improvements in mind for the provider assign me a ticket and we can discuss it there, might as well do something useful with my isolation time 😋
Alright, I'll keep that in mind :-)
I was looking at policy inheritance as defined in https://authzforce-ce-fiware.readthedocs.io/en/latest/UserAndProgrammersGuide.html#re-usable-policies-e-g-for-hierarchical-rbac
and I was wondering if it is possible to refer to a policyset within the same file instead of across 2 different ones as defined in the example
eg.
I tried it but computer says no (
java.lang.IllegalArgumentException: No PolicySet matching reference: id = RPS:BasicUser, Optional[Version=*,EarliestVersion=*,LatestVersion=*]
)So my question is: Is that by design?
Software version (AuthzForce Core)
Platform JRE
Platform OS
authzforce/server:release-8.1.0
Error stack trace or logs (if any)
Your code and/or AuthzForce-specific configuration file(s)
transferred from https://github.com/authzforce/core/issues/48