Omniauth::Office365
Microsoft Office365 v2.0 OmniAuth OAuth2 Strategy - https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Installation
Add this line to your application's Gemfile:
gem 'omniauth-office365'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-office365
Usage
Rails.application.config.middleware.use OmniAuth::Builder do
provider :office365, ENV['OFFICE365_KEY'], ENV['OFFICE365_SECRET']
end
Reference Links
Microsoft Office365 v2.0 - https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Scopes and Resource - https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
Contributing
Bug reports and pull requests are welcome.
- Fork it
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes along with test cases (
git commit -m 'Add feature'
) - If possible squash your commits to one commit if they all belong to same feature.
- Push to the branch (
git push origin new-feature
) - Create new Pull Request.
License
The gem is available as open source under the terms of the MIT License.