def authorize(self, auth_session):
<EOL>ask_access_response = auth_session.post(self.AUTHORIZE_URL, self.get_auth_params())<EOL>url_queries = self.get_response_url_queries(ask_access_response)<EOL>if '<STR_LIT>' not in url_queries:<EOL><INDENT>grant_access_action = self.get_form_action(ask_access_response)<EOL>grant_access_response = auth_session.post(grant_access_action)<EOL>url_queries = self.get_response_url_queries(grant_access_response)<EOL><DEDENT>return self.process_auth_url_queries(url_queries)<EOL>
OAuth2