OmniAuth CAS Login

This gem contains the CAS Login strategy for OmniAuth.

Before You Begin

You should have already installed OmniAuth into your app; if not, read the OmniAuth README to get started.

Using This Strategy

First start by adding this gem to your Gemfile:

gem 'omniauth-cas-login'

If you need to use the gem locally from source, place the root folder in 'vendor/gems' and add the following line instead:

gem 'omniauth-cas-login', :path => 'vendor/gems/omniauth-cas-login'

Next, tell OmniAuth about this provider. For a Rails app, your config/initializers/omniauth.rb file should look like this:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :cas_login, "CLIENT_KEY", "CLIENT_SECRET"
end

Replace CLIENT_KEY and CLIENT_SECRET with the appropriate values you obtained from the login provider.