Skip to content

Commit bd7ad1b

Browse files
committed
Allow SSL callbacks from all providers
Fixes #99
1 parent 238e97d commit bd7ad1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/spree/omniauth_callbacks_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Spree::OmniauthCallbacksController < Devise::OmniauthCallbacksController
66
def self.provides_callback_for(*providers)
77
providers.each do |provider|
88
class_eval %Q{
9+
ssl_allowed :#{provider}
910
def #{provider}
1011
if request.env["omniauth.error"].present?
1112
flash[:error] = t("devise.omniauth_callbacks.failure", :kind => auth_hash['provider'], :reason => t(:user_was_not_valid))

0 commit comments

Comments
 (0)