Office365 OAuth2 Strategy for OmniAuth.
Add this line to your application's Gemfile:
gem 'omniauth-microsoft-office365'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-microsoft-office365
Rails.application.config.middleware.use OmniAuth::Builder do
provider :microsoft_office365, ENV['OFFICE365_KEY'], ENV['OFFICE365_SECRET']
end