0.0
No commit activity in last 3 years
No release in over 3 years
Tropo strategy for OmniAuth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

OmniAuth::Tropo

OmniAuth stratgie to get user profile from Tropo's RestAPI.

Usage

Install manually, or just use Bundler:

gem 'omniauth-tropo'

Add :tropo provider to omniauth builder (RAILS_ROOT/config/initializers/omniauth.rb):

# configuration for Tropo Provisioning API
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :tropo, "http://api.tropo.com"
  # provider ...
end

If you want to pull roles from the ProvisioningAPI ( Premise only ) you can do so by adding :role_options hash in the builder:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :tropo, "http://yourserver.com:8080/rest", :role_options=>{:admin_username=>'admin',:admin_password=>'admin'}
end

Example:

cd examples
rackup config.ru
http://localhost:9292