For the access token request, if the signature is not valid, it will raise TypeError exception.
2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi File "./keystone/common/wsgi.py", line 227, in __call__ 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi result = method(req, **params) 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi File "./keystone/oauth1/controllers.py", line 309, in create_access_token 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi params = oauth1.extract_non_oauth_params(b) 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi File "./keystone/oauth1/core.py", line 108, in extract_non_oauth_params 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi return {k: v for k, v in params if not k.startswith('oauth_')} 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi TypeError: 'NoneType' object is not iterable 2016-08-23 16:45:19.705 5202 TRACE keystone.common.wsgi
If the provided consumer does not exist, it will throw NotImplementedError exception to show that dummy_client is not implemented.
All these exception is not properly handled, end user doens't know anything from these exception message. It should be Unauthorized exception raised.
For the access token request, if the signature is not valid, it will raise TypeError exception.
2016-08-23 16:45:19.705 5202 TRACE keystone. common. wsgi File "./keystone/ common/ wsgi.py" , line 227, in __call__ common. wsgi result = method(req, **params) common. wsgi File "./keystone/ oauth1/ controllers. py", line 309, in create_access_token common. wsgi params = oauth1. extract_ non_oauth_ params( b) common. wsgi File "./keystone/ oauth1/ core.py" , line 108, in extract_ non_oauth_ params common. wsgi return {k: v for k, v in params if not k.startswith( 'oauth_ ')} common. wsgi TypeError: 'NoneType' object is not iterable common. wsgi
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
2016-08-23 16:45:19.705 5202 TRACE keystone.
If the provided consumer does not exist, it will throw NotImplementedError exception to show that dummy_client is not implemented.
All these exception is not properly handled, end user doens't know anything from these exception message. It should be Unauthorized exception raised.