def _getAuth(self, auth):
if type(auth) is dict:<EOL><INDENT>return auth<EOL><DEDENT>else:<EOL><INDENT>if None != self._clientid:<EOL><INDENT>return {"<STR_LIT>": auth, "<STR_LIT>": self._clientid}<EOL><DEDENT>elif None != self._resourceid:<EOL><INDENT>return {"<STR_LIT>": auth, "<STR_LIT>": self._resourceid}<EOL><DEDENT>return {"<STR_LIT>": auth}<EOL><DEDENT>
Create the authorization/identification portion of a request.