[Pulp-list] Unable to parse OAuth parameters from Authorization header

Lukas Zapletal lzap+fed at redhat.com
Mon Jul 18 14:01:41 UTC 2011


Hello,

I have upgraded to CR14 and oauth no longer works for me. Not sure if I 
messed up during the upgrade, but triple-checked my secret/key pairs 
(all set to "katello"), its still giving me %SUBJ%.

Are there any regressions regarding oauth in this release?

The log follows (I slightly extended it a bit with request URL and params):


2011-07-18 15:59:08,793 23316:-1256203408: 
pulp.server.db.connection:INFO: connection:46 Attempting Database 
connection with seeds = localhost
2011-07-18 15:59:08,795 23316:-1256203408: 
pulp.server.db.connection:INFO: connection:51 Database connection 
established with: seeds = localhost, name = pulp_database
2011-07-18 15:59:08,911 23316:-1281381520: 
pulp.server.auth.authentication:INFO: authentication:195 
https://localhost/pulp/api/users/
2011-07-18 15:59:08,911 23316:-1281381520: 
pulp.server.auth.authentication:INFO: authentication:196 
{'Authorization': 'OAuth oauth_consumer_key="katello", 
oauth_nonce="yChk0UAVTPwinpu99zKgmj6q5oIcfIpVNvjzJXyIfM4", 
oauth_signature="o3eXvW4RrnDE3QRPgbNIYkyvZRA%3D", 
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1310997548", 
oauth_version="1.0", Basic'}
2011-07-18 15:59:08,911 23316:-1281381520: 
pulp.server.auth.authentication:INFO: authentication:197
2011-07-18 15:59:08,912 23316:-1281381520: 
pulp.server.webservices.controllers.decorators:ERROR: decorators:52 
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", 
line 48, in report_error
     return method(self, *args, **kwargs)
   File 
"/usr/lib/python2.7/site-packages/pulp/server/webservices/controllers/decorators.py", 
line 112, in _auth_decorator
     user = check_oauth(username, meth, url, auth, query)
   File 
"/usr/lib/python2.7/site-packages/pulp/server/auth/authentication.py", 
line 198, in check_oauth
     req = oauth2.Request.from_request(method, url, headers, 
query_string=query)
   File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 434, 
in from_request
     raise Error('Unable to parse OAuth parameters from '
Error: Unable to parse OAuth parameters from Authorization header.

-- 
Later,
   Lukas "lzap" Zapletal




More information about the Pulp-list mailing list