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

Establish standardized way to record auth0 rule dependencies #173

Open
gene1wood opened this issue Feb 15, 2018 · 0 comments
Open

Establish standardized way to record auth0 rule dependencies #173

gene1wood opened this issue Feb 15, 2018 · 0 comments

Comments

@gene1wood
Copy link
Contributor

gene1wood commented Feb 15, 2018

Currently auth0 rules have an associated order (example). The rules are processed in order and this order affects the outcome for the user attempting to authenticate.

Some of these rules are in a specific position in the order because they depend on other rules running before they do. Other rules are in their position in the order for no reason.

Let's establish a standard way to annotate rules, indicating what other rules they dependend on and which must run before them.

This will allow us to establish continuous integration testing with each PR to ensure that a change doesn't break one of these dependencies.

One way we could approach this would be to

  • establish a variable name in which we record the unique name of the rule. It could be the name of the file in this repo. For example we could add a line to SAML-AWS-consolidatedbilling-readonly.js like this

    var ruleName = 'SAML-AWS-consolidatedbilling-readonly';
    
  • establish a second variable name which would contain an array of dependent rule names. For example

    var dependencies = ['SAML-thinksmart', 'duosecurity'];
    
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

1 participant