code: def id_request(self):
          
          # https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_at_Salesforce.com?language=en&language=en#The_Force.com_Identity_Service
  
          if 'id' in self.oauth:
              url = self.oauth['id']
          else:
              # dynamic auth without 'id' parameter
              url = self.urls_request()['identity']
          ret = self.handle_api_exceptions('GET', url)  # TODO
          return ret.json()
docs: The Force.com Identity Service (return type dict of text_type)