def auth_user_process_url(self, url):
url = urlparse.urlparse(url)<EOL>url_qs = dict(it.chain.from_iterable(<EOL>urlparse.parse_qsl(v) for v in [url.query, url.fragment] ))<EOL>if url_qs.get('<STR_LIT:error>'):<EOL><INDENT>raise AuthenticationError('<STR_LIT>'.format(<EOL>url_qs['<STR_LIT:error>'], url_qs.get('<STR_LIT>') ))<EOL><DEDENT>self.auth_code = url_qs['<STR_LIT:code>']<EOL>return self.auth_code<EOL>
Process tokens and errors from redirect_uri.