ueberauth_auth0
ueberauth_auth0 copied to clipboard
Adds computed configurations
Hi!
First of all I want to thank you for creating ueberauth-auth0 dependency.
I've made some small changes to the dependency to allow computed configurations. This was based on the need of multi tenancy support.
This was made possible thanks to bracket7/ueberauth_auth0 fork. I took his fork and adapted it to the current version of ueberauth-auth0 dep and updated the tests.
I followed the rules mentioned on the CONTRIBUTING.md file.
Any feedback would be appreacited.
Cheers.
Hi @silvagustin !
Thanks for your contribution 🎉 Seems like a neat additional feature 💪
Would you be so kind as to add a few tests that covers the logic in compute_configs ? They will also serve as a good example of how to use it with or without computed configs and ensure everything keeps running smoothly.
I'll also give it a try in the upcoming weeks if I can before merging. I'm extra careful with this as auth systems can be critical components in some companies ;)
Thanks again !
P.S. I think I'll need to update the CI configuration to use new github actions as the current one is outdated and might fail.
Hello again!
Of course, I'll work on adding some tests for the compute_configs. It's my first time contributing to the Elixir community so any feedback will be well received 😁.
Cheers.
Cool :) You'll see tests that require an external call use exvcr to return sample payloads.
For the CI, you'll need to rebase your changes on master, I had to update the CI image as the previous one was stale dans wouldn't build anymore.
Cheers !
@achedeuzot
The first thing I did before continued working on this was rebase this branch with master.
I'm not sure if what I did is what you expected. The only way I found to test it was to:
- Add a new configuration for tests
- The
config.exswill load the right configuration file based on theenvironment - In order to run the tests first with the default configurations and then with the custom, I had to create a new alias named
test.all(source: Testing a Mix app with ExUnit: changing config values set at compile time)
Tests are working fine by running mix test.all on Terminal:

If this is fine then the next step would be to update the github workflows file.
Let me know your thoughts.
Cheers.
Hello again @achedeuzot.
It's been a while since I created this PR and days ago I've decided to update it by rebasing this branch with master and fix the tests that weren't working.
Can you review it again?
Cheers.