code: def _getAuth(self, auth):
          
          if type(auth) is dict:
              return auth
          else:
              # auth is string
              if None != self._clientid:
                  return {"cik": auth, "client_id": self._clientid}
              elif None != self._resourceid:
                  return {"cik": auth, "resource_id": self._resourceid}
              return {"cik": auth}
docs: Create the authorization/identification portion of a request.