Skip to content
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

protect orion #101

Open
fernandorr21 opened this issue Aug 2, 2020 · 1 comment
Open

protect orion #101

fernandorr21 opened this issue Aug 2, 2020 · 1 comment

Comments

@fernandorr21
Copy link

Hello, I am Fernando.
I have a stage with keyrock, authzforce and wilma. I want to make the creation of entities safe depending on the values ​​of the attributes of those entities. If for example the email attribute, email = fernando, I want the entity to be created, in case it does not have the value fernando is not created. With Authzforce the attributes of the entities are not captured, with Wilma is it possible to allow this?

@jason-fox
Copy link
Contributor

There is an existing stub to do this called custom_policy ( I have not used this)

config.authorization = {
  enabled: false,
  pdp: 'idm', // idm|authzforce
  azf: {
    protocol: 'http',
    host: 'localhost',
    port: 8080,
    custom_policy: undefined, // use undefined to default policy checks (HTTP verb + path).
  },
};

You'd write the code to create the Authzforce request based on the custom_policy.js.template and need to change custom_policy from undefined to point to the new file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants