🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

omniauth-dingtalk-oauth2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-dingtalk-oauth2

1.0.1
Version published
Maintainers
1
Created

Omniauth DingTalk

This project forked from https://github.com/jinhucheung/omniauth-dingding.

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-dingtalk-oauth2'

And then execute:

$ bundle install

Usage

OmniAuth::Strategies::Dingtalk 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 :dingtalk, ENV['DINGTALK_APP_ID'], ENV['DINGTALK_APP_SECRET']
end

Contributing

Bug reports and pull requests are welcome on GitLab at https://gitlab.com/gitlab-jh/jh-team/omniauth-dingtalk.

License

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

FAQs

Package last updated on 13 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts