I have Google Ueberauth implemented in Phoenix according to examples but am wondering how I should think about creating integration tests (browser tests, acceptance tests, whatever you like to call those).
I could create an auth server, or maybe set some environment variables, or mock/stub methods. I’d like to know what a preferred approach is and why. Some example code or helpful links would also be greatly appreciated.
You will want to look into something like https://github.com/ueberauth/guardian_backdoor , it lets you authenticate by using this in your tests instead of having to go through whatever authentication gateway you use, and great for testing authorization as well.