2010-08-10 16:04:19 -04:00
|
|
|
= OmniAuth::Enterprise
|
2010-07-04 15:42:09 -04:00
|
|
|
|
|
|
|
OmniAuth strategies for use in your intranet.
|
|
|
|
|
|
|
|
== Installation
|
|
|
|
|
2010-08-10 16:04:19 -04:00
|
|
|
To get just enterprise functionality:
|
2010-07-04 15:42:09 -04:00
|
|
|
|
2010-08-10 16:04:19 -04:00
|
|
|
gem install oa-enterprise
|
2010-07-04 15:42:09 -04:00
|
|
|
|
|
|
|
For the full auth suite:
|
|
|
|
|
|
|
|
gem install omniauth
|
|
|
|
|
|
|
|
== Stand-Alone Example
|
|
|
|
|
|
|
|
Use the strategy as a middleware in your application:
|
|
|
|
|
2010-08-10 16:04:19 -04:00
|
|
|
require 'omniauth/enterprise'
|
2010-07-04 15:42:09 -04:00
|
|
|
|
|
|
|
use OmniAuth::Strategies::CAS, :server => 'http://cas.mycompany.com/cas'
|
|
|
|
|
|
|
|
Then simply direct users to '/auth/cas' to have them sign in via your company's CAS server.
|
|
|
|
See OmniAuth::Strategies::CAS::Configuration for more configuration options.
|
|
|
|
|
|
|
|
|
|
|
|
== OmniAuth Builder
|
|
|
|
|
|
|
|
If CAS is one of several authentication strategies, use the OmniAuth Builder:
|
|
|
|
|
2010-08-10 16:04:19 -04:00
|
|
|
require 'omniauth/enterprise'
|
2010-07-04 15:42:09 -04:00
|
|
|
require 'omniauth/oauth' # for Campfire
|
|
|
|
require 'openid/store/filesystem'
|
|
|
|
|
|
|
|
use OmniAuth::Builder do
|
|
|
|
provider :cas, :server => 'http://cas.mycompany.com/cas'
|
|
|
|
provider :campfire
|
|
|
|
end
|