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

Auth0 rules environment has module property #1

Closed
chandern opened this issue May 6, 2021 · 2 comments
Closed

Auth0 rules environment has module property #1

chandern opened this issue May 6, 2021 · 2 comments

Comments

@chandern
Copy link

chandern commented May 6, 2021

Hi, I was going through your blog on using CI and CD for managing auth0 rules. It's clever to be able to use the if check on module to differentiate between test run and running on auth0 tenant UI. However I think the module property now exists as it is trying to set module.exports when trying to test my rule on the UI and I get the following error:
ERROR: Cannot read property 'apply' of undefined
I know you haven't looked at this in some time but have you come across this?

@KleeUT
Copy link
Owner

KleeUT commented May 6, 2021

@chandern I haven't come across it, but I was able to reproduce it this morning using one of my tenants. Thanks for the comment, I have production workloads using this method that I'll need to look into. They're not failing now but they could well start.

@chandern
Copy link
Author

chandern commented May 7, 2021

No worries. FYI I've come across some Auth0 documentation on testing rules best practices for a CI/CD flow that you may find useful. https://auth0.com/docs/best-practices/rules-testing-best-practices
Seems fine for my testing purposes. I will close this issue

@chandern chandern closed this as completed May 7, 2021
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