From 2da927949f3112d7285e14a22c14407dab318865 Mon Sep 17 00:00:00 2001 From: JHeidinga Date: Fri, 8 Jun 2012 09:30:23 +0300 Subject: [PATCH] Update of authorize_options to support :auth_type http://developers.facebook.com/docs/authentication/reauthentication/ auth_type: this parameter specifies the requested authentication features (as a comma-separated list). Valid options are: https - checks for the presence of the secure cookie and asks for re-authentication if it is not present reauthenticate - asks the user to re-authenticate unconditionally --- lib/omniauth/strategies/facebook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/facebook.rb b/lib/omniauth/strategies/facebook.rb index 02d9dc8..f6b0def 100644 --- a/lib/omniauth/strategies/facebook.rb +++ b/lib/omniauth/strategies/facebook.rb @@ -24,7 +24,7 @@ module OmniAuth :param_name => 'access_token' } - option :authorize_options, [:scope, :display] + option :authorize_options, [:scope, :display, :auth_type] uid { raw_info['id'] }