jinhucheung / omniauth-dingding

Omniauth strategy for DingTalk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem Version Build Status

Omniauth Dingding

This is the official OmniAuth strategy for authenticating to DingTalk. To use it, you'll need to sign up for an OAuth2 Application ID and Secret on the DingTalk Applications Page.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-dingding'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install omniauth-dingding

Usage

OmniAuth::Strategies::Dingding is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :dingding, ENV['DINGDING_APP_ID'], ENV['DINGDING_APP_SECRET']
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jinhucheung/omniauth-dingding.

License

The gem is available as open source under the terms of the MIT License.

About

Omniauth strategy for DingTalk

License:MIT License


Languages

Language:Ruby 98.6%Language:Shell 1.4%