From 3e5963fde46d7da06779bbb0955a2ae6ab71f7c5 Mon Sep 17 00:00:00 2001 From: Michael Bleigh Date: Mon, 4 Oct 2010 10:12:16 -0500 Subject: [PATCH] Cleanup of a few small things. --- README.markdown | 2 ++ oa-enterprise/lib/omniauth/strategies/ldap.rb | 1 - oa-oauth/lib/omniauth/strategies/twitter.rb | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 3b1469b..f361c32 100644 --- a/README.markdown +++ b/README.markdown @@ -24,6 +24,8 @@ OmniAuth currently supports the following external providers: * GitHub * OpenID * Google Apps (via OpenID) +* CAS (Central Authentication Service) +* LDAP ## Usage diff --git a/oa-enterprise/lib/omniauth/strategies/ldap.rb b/oa-enterprise/lib/omniauth/strategies/ldap.rb index 1b0cd81..ea0ccf9 100644 --- a/oa-enterprise/lib/omniauth/strategies/ldap.rb +++ b/oa-enterprise/lib/omniauth/strategies/ldap.rb @@ -34,7 +34,6 @@ module OmniAuth begin @adaptor.bind(:bind_dn => request.POST['username'], :password => request.POST['password']) @user_info = @adaptor.search(:filter => Net::LDAP::Filter.eq(@adaptor.uid, request.POST['username']),:limit => 1) - puts @user_info request.POST['auth'] = auth_hash @env['REQUEST_METHOD'] = 'GET' @env['PATH_INFO'] = "#{OmniAuth.config.path_prefix}/#{name}/callback" diff --git a/oa-oauth/lib/omniauth/strategies/twitter.rb b/oa-oauth/lib/omniauth/strategies/twitter.rb index 4080861..097d350 100644 --- a/oa-oauth/lib/omniauth/strategies/twitter.rb +++ b/oa-oauth/lib/omniauth/strategies/twitter.rb @@ -33,7 +33,6 @@ module OmniAuth 'name' => user_hash['name'], 'location' => user_hash['location'], 'image' => user_hash['profile_image_url'], - 'screen_name' => user_hash['screen_name'], 'description' => user_hash['description'], 'urls' => {'Website' => user_hash['url']} }