Permalink
Browse files

Doorkeeper strategy returns email in info hash

  • Loading branch information...
1 parent 4e981cb commit 607a936360d30c13a115d98d7b3790d9d820594d @piotrj piotrj committed Nov 29, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/omniauth/strategies/doorkeeper.rb
@@ -12,6 +12,12 @@ class Doorkeeper < OmniAuth::Strategies::OAuth2
raw_info["id"]
end
+ info do
+ {
+ :email => raw_info["email"]
+ }
+ end
+
def raw_info
@raw_info ||= access_token.get('/api/v1/me.json').parsed
end

0 comments on commit 607a936

Please sign in to comment.