def unauthorized(self, response):
if self.serve_challenge_on_401:<EOL><INDENT>realm = current_app.config.get("<STR_LIT>", "<STR_LIT>")<EOL>challenge = u"<STR_LIT>".format("<STR_LIT>", realm)<EOL>response.headers['<STR_LIT>'] = challenge<EOL><DEDENT>return response<EOL>
Given a response, change it to ask for credentials