[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2019-03-15 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could we have a response to this problem please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2010-08-30 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +orsenthil
versions:  -Python 2.5, Python 2.6, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2010-08-30 Thread Kuno Woudt

New submission from Kuno Woudt :

In the WWW-Authenticate header Catalyst::Authentication::Credential::HTTP sends 
the following value for qop:

qop="auth,auth-int"

This is identical to the example given in section 3.5 of the RFC 
(http://tools.ietf.org/html/rfc2617#section-3.5 ), so I assume this is correct.

urllib2 does not expect multiple values for qop, and only works when qop="auth".

I've managed to work around it with:

class DigestAuthHandler (urllib2.HTTPDigestAuthHandler):
def get_authorization (self, req, chal):
qop = chal.get ('qop', None)
if qop and ',' in qop and 'auth' in qop.split (','):
chal['qop'] = 'auth'

return urllib2.HTTPDigestAuthHandler.get_authorization (self, req, chal)

--
components: Library (Lib)
messages: 115207
nosy: warpr
priority: normal
severity: normal
status: open
title: urllib2 digest authentication doesn't work when connecting to a Catalyst 
server.
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com