Thanks for replying. I will perform a redirection to bypass this limitation.
2009/1/22 Chris McDonough <chr...@plope.com>:
> Hi Bruno,
> I mentioned this in IRC but in case you don't get it:
> There is no way to preserve the original body when you perform a challenge
> currently. You might redirect in the challenger instead?
> - C
> binet bruno wrote:
>> I'm new to repoze.who, and I would like to code a challenger which is
>> only responsible for forgetting credentials, nothing more!
>> So only headers should be updated with 'forget_headers' arg, but the
>> content of the http response should remain the same.
>> Is this possible?
>> For the moment I've tried the following challenger, but the content of
>> the http response is replace by HTTPOk...
>> from webob.exc import HTTPOk
>> def challenge(self, environ, status, app_headers, forget_headers):
>> return HTTPOk(headers=forget_headers)
>> This challenger is called by a custom challenge_decider wich fires
>> when url path of the request was '/logout'
>> Any idea?
>> Repoze-dev mailing list
Repoze-dev mailing list