lib/omniauth/strategies/openstax.rb in openstax_connect-0.0.8 vs lib/omniauth/strategies/openstax.rb in openstax_connect-0.0.9

- old
+ new

@@ -9,11 +9,11 @@ option :client_options, { :site => OpenStax::Connect.configuration.openstax_services_url, :authorize_url => "/oauth/authorize" } - uid { raw_info["uid"] } + uid { raw_info["id"] } info do { username: raw_info["username"], first_name: raw_info["first_name"], @@ -21,10 +21,10 @@ # and anything else you want to return to your API consumers } end def raw_info - @raw_info ||= access_token.get('/api/v1/me.json').parsed + @raw_info ||= access_token.get('/api/users/me.json').parsed end end end end