From ee96fabcba3c215fc11840130f9e74f4de1fe041 Mon Sep 17 00:00:00 2001 From: Emili Parreno Date: Wed, 28 Aug 2013 14:32:51 +0200 Subject: [PATCH] Allow CAS authentication --- app/controllers/users/omniauth_callbacks_controller.rb | 3 ++- lib/auth.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 42fc78f3b..2be789910 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -11,7 +11,8 @@ class Users::OmniauthCallbacksController < ApplicationController Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", trusted: true), Auth::GithubAuthenticator.new, Auth::TwitterAuthenticator.new, - Auth::PersonaAuthenticator.new + Auth::PersonaAuthenticator.new, + Auth::CasAuthenticator.new ] skip_before_filter :redirect_to_login_if_required diff --git a/lib/auth.rb b/lib/auth.rb index ead065a5a..910a5863a 100644 --- a/lib/auth.rb +++ b/lib/auth.rb @@ -7,3 +7,4 @@ require_dependency 'auth/open_id_authenticator' require_dependency 'auth/github_authenticator' require_dependency 'auth/twitter_authenticator' require_dependency 'auth/persona_authenticator' +require_dependency 'auth/cas_authenticator'