This gem contains the Crushpath strategy for OmniAuth 1.0.
Add to your Gemfile
:
gem 'omniauth'
gem 'omniauth-crushpath'
Then bundle install
.
OmniAuth::Strategies::Crushpath
is simply a Rack middleware.
Read the OmniAuth 1.0 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 :crushpath, ENV['CRUSHPATH_KEY'], ENV['CRUSHPATH_SECRET']
end
In Sinatra
use OmniAuth::Builder do
provider :crushpath, ENV['CRUSHPATH_KEY'], ENV['CRUSHPATH_SECRET']
end
The default site it will connect to is https://deals.crushpath.com
but you can change it via the :site
option
id
- The user idfull_name
- The person's display nameemail
- The person's emailimage
- A url to the full size image for the persondescription
- The person's titlecompany
- The organization tied to the person's main jobnickname
- The vanity_path for the default tenant userurls
- Hash with urls:tenant
- The tenant subdomain for the default tenant user:crushpath
- The user's selected website
The same data as obtained for https://deals.crushpath.com/users/~.json