I’m using the OmniAuth Azure Active Directory gem. Which seems to work quite well when you fork it and include the
fixes that haven’t been merge in :\
I had a lot of trouble finding how to log a user in for controller integration tests. This may be obvious to Rails full timers, but I only put my Rails hat on every now and then.
Add this to your test helper:
Now, from any of your
IntegrationTest subclasses, you can simply call
login before you do anything else!