lib/sorcery/controller/submodules/external.rb
# tries to login the user from provider's callback
tries to login the user from provider's callback
tries to login the user from provider ' s callback
def login_from(provider)
            @provider = Config.send(provider)
            @provider.process_callback(params,session)
            @user_hash = @provider.get_user_hash
            if user = user_class.load_from_provider(provider,@user_hash[:uid].to_s)
              return_to_url = session[:return_to_url]
              reset_session
              session[:return_to_url] = return_to_url
              auto_login(user)
              user
            end
          end
def login_from ( provider ) @provider = Config . send ( provider ) @provider . process_callback ( params , session ) @user_hash = @provider . get_user_hash if user = user_class . load_from_provider ( provider , @user_hash [ :uid ] . to_s ) return_to_url = session [ :return_to_url ] reset_session session [ :return_to_url ] = return_to_url auto_login ( user ) user end end
tries to login the user from provider's callback
tries to login the user from provider ' s callback
provider
<not_specific>