/omniauth-zoom

OmniAuth Zoom

Primary LanguageRuby

OmniAuth Zoom

This is an OmniAuth strategy for authenticating to Zoom. To use it, you'll need to sign up for an OAuth Application ID and Secret on the Zoom Applications Page. You can read more about Zoom's OAuth over at their developer page

Contributing

see CONTRIBUTING.md

Installation

Add this line to your application's Gemfile:

gem 'omniauth-zoom'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-zoom

Usage

If omniauth-zoom is ready to go, you need to add the following lines to your config/initializers/omniauth.rb:

use OmniAuth::Builder do
    provider :zoom, ENV['ZOOM_APP_KEY'], ENV['ZOOM_APP_SECRET']
end

You need to replace the ZOOM_APP_KEY and ZOOM_APP_SECRET with your own credentials, you can get them at the Zoom's developer page as mention above.

Open the following URL and connect your Zoom account with your application:

/auth/zoom

Mock OAuth Response

{
   "id"=>"66RIPutABCDqBNI5VQA9Tw",
   "first_name"=>"Nikhil",
   "last_name"=>"Gupta",
   "email"=>"nick@yourdomain.com",
   "type"=>1,
   "pmi"=>123123123,
   "use_pmi"=>false,
   "personal_meeting_url"=>"https://zoom.us/j/123123123",
   "timezone"=>"",
   "verified"=>0,
   "dept"=>"",
   "created_at"=>"2018-08-20T08:43:44Z",
   "last_login_time"=>"2018-09-07T07:51:47Z",
   "last_client_version"=>"4.1.28165.0716(mac)",
   "pic_url"=>"https://lh4.googleusercontent.com/-ncv-QFDfBKA/AAAAAAAAAAI/AAAAAAAAAA0/jOGyW7vaMus/photo.jpg?sz=50",
   "host_key"=>"123456",
   "group_ids"=>[],
   "im_group_ids"=>[],
   "account_id"=>"CrH_wNzoRBACBhMaCggL4A"
 }

Supported Rubies

OmniAuth Zoom is tested under 2.3, 2.4, 2.5, JRuby (head) and Rubinius and ruby-head.

Build Status

License

Copyright (c) 2015 Nikhil Gupta.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.