lib/norseal/omniauth/strategy.rb in norseal-omniauth-0.1.2 vs lib/norseal/omniauth/strategy.rb in norseal-omniauth-0.1.4

- old
+ new

@@ -2,11 +2,11 @@ module Strategies class Norseal < OmniAuth::Strategies::OAuth2 option :name, :norseal option :client_options, { - site: "http://indentity.norseal.co.uk", + site: "http://identity.norseal.co.uk", authorize_url: "/oauth/authorize" } uid do raw_info['id'] @@ -15,10 +15,10 @@ info do {email: raw_info['email'], name: raw_info['name']} end def raw_info - @raw_info ||= access_token.get('/me.json').parsed + @raw_info ||= access_token.get('/me.json').parsed || {} end end end end