lib/omniauth/strategies/appnet.rb in omniauth-appnet-0.0.1 vs lib/omniauth/strategies/appnet.rb in omniauth-appnet-0.0.3
- old
+ new
@@ -12,11 +12,22 @@
:token_url => 'https://alpha.app.net/oauth/access_token'
}
uid { raw_info['id'] }
+ info do
+ {
+ :nickname => raw_info['username'],
+ :name => raw_info['name'],
+ :image => raw_info['avatar_image']['url'],
+ :description => raw_info['description']['text'],
+ :type => raw_info['type'],
+ :counts => raw_info['counts']
+ }
+ end
+
extra do
- {:raw_info => raw_info}
+ { :raw_info => raw_info }
end
def raw_info
@raw_info ||= access_token.get('stream/0/users/me').parsed
end
\ No newline at end of file