# File lib/omniauth/strategies/oauth2/salesforce.rb, line 47 def user_data @access_token.options[:header_format] = 'OAuth %s' @data ||= @access_token.get(@access_token['id']).parsed rescue ::OAuth2::Error => e if e.response.status == 302 @data ||= @access_token.get(e.response.headers['location']).parsed else raise e end end