From 53380b934d86f0112daf6a833443d0763f3dae34 Mon Sep 17 00:00:00 2001 From: Michael Bleigh Date: Tue, 19 Oct 2010 09:43:52 -0500 Subject: [PATCH] Make error parameter checking looser. Closes #58. --- oa-oauth/lib/omniauth/strategies/oauth2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oa-oauth/lib/omniauth/strategies/oauth2.rb b/oa-oauth/lib/omniauth/strategies/oauth2.rb index ba79d2f..8eaabbb 100644 --- a/oa-oauth/lib/omniauth/strategies/oauth2.rb +++ b/oa-oauth/lib/omniauth/strategies/oauth2.rb @@ -50,7 +50,7 @@ module OmniAuth end def callback_phase - if request.params['error'] + if request.params['error'] || request.params['error_reason'] raise CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri']) end