Hi Bruno, thanks for the hint, but this forget function is only available with pyramid, not with pylons - I think I forgot to mention I am still using pylons.
I thought, that it might due to the fact, that I need to pass the realm
when trowing the 401, but this does not help either.
raise HTTPUnauthorized(
str(detail),
[('WWW-Authenticate', 'Digest
realm="%s", nonce="%s", qop="auth"' % (realm, nonce))]
)
Kind regards
Cornelius
Am 27.10.2011 13:48, schrieb Bruno Binet:
> I think you should use the forget authentication api function:
> http://docs.pylonsproject.org/projects/pyramid/dev/api/security.html
>
> 2011/10/27 Cornelius Kölbel <[email protected]>:
>> Hi list,
>>
>> I got a web application with the webserver's basic authentication. (yes,
>> true. At the moment this can not be changed)
>> Nevertheless I tried to make the browser forget the credentials by sending a
>>
>>
>> from webob.exc import HTTPUnauthorized
>> raise HTTPUnauthorized()
>>
>> But the browser still remembers the login.
>>
>> Any idea on this?
>>
>> Thanks a lot and kind regards
>> Cornelius
>>
>>
>
>
signature.asc
Description: OpenPGP digital signature
