def confirm_authorization_request(self):
server = self.server<EOL>uri, http_method, body, headers = extract_params()<EOL>try:<EOL><INDENT>realms, credentials = server.get_realms_and_credentials(<EOL>uri, http_method=http_method, body=body, headers=headers<EOL>)<EOL>ret = server.create_authorization_response(<EOL>uri, http_method, body, headers, realms, credentials<EOL>)<EOL>log.debug('<STR_LIT>')<EOL>return create_response(*ret)<EOL><DEDENT>except errors.OAuth1Error as e:<EOL><INDENT>return redirect(e.in_uri(self.error_uri))<EOL><DEDENT>except errors.InvalidClientError as e:<EOL><INDENT>return redirect(e.in_uri(self.error_uri))<EOL><DEDENT>
When consumer confirm the authrozation.