From 857e2e6a192d979731b62cdde1f7b0ce0ea4e2ea Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 2 Aug 2013 10:03:29 +1000 Subject: [PATCH] correct scope, it should user:email to get read access to email --- config/initializers/omniauth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 1083e05c7e3..91c9a5cb005 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -51,7 +51,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do strategy.options[:client_id] = SiteSetting.github_client_id strategy.options[:client_secret] = SiteSetting.github_client_secret }, - :scope => "email" + :scope => "user:email" provider :browser_id, :name => "persona"