def authenticate(self):
if self.oauth:<EOL><INDENT>return False<EOL><DEDENT>self.settings.apply('<STR_LIT>', self.args.asana_api,<EOL>"<STR_LIT>")<EOL>self.settings.apply('<STR_LIT>', self.args.github_api,<EOL>"<STR_LIT>")<EOL>logging.debug("<STR_LIT>")<EOL>self.asana = Client.basic_auth(self.settings['<STR_LIT>'])<EOL>self.asana_errors = asana_errors<EOL>self.asana_me = self.asana.users.me()<EOL>logging.debug("<STR_LIT>")<EOL>self.github = Github(self.settings['<STR_LIT>'])<EOL>self.github_user = self.github.get_user()<EOL>self.oauth = True<EOL>
Connects to Github and Asana and authenticates via OAuth.