keystone/keystone
Dave Chen 48a5336d3d Handle token exception and use proper url for verification
This commit is a product of two separate commits in order to unwedge
the stable/newton gate. The first commit is a oauth refactor to
properly handle token exceptions. The second is a patch to that
uses the proper url when verifying an oauth request token. The
problem is that the second patch can't be applied due to the
refactor from the first. This commit merges the two commits
together so that their isn't a merge conflict and it passes the
currently broken gate.

The first commit is:

Handle the exception from creating access token properly

If there is any request from client with any invalid request
parameters, invalid signature for example, keystone should
capture that and raise the exception.

It was `NotImplementedError`, `TypeError` thrown out and
presented directly to end user, and nothing helpful message
is given.

This patch fix that and show as many exception message that
is helpful for diagnosis as possible.

Change-Id: I112d0cd0c8a460c7b4d8d0e1c0b9c742aab9fde7
Closes-Bug: #1616424
(cherry picked from commit be5385c538)

This is the second commit

Change url passed to oauth signature verifier to request url

OAUTH signature verification should happen with the same URL used for signing.
Typically at the user end it should be signed with the request URL and hence it
should be verified with the same.
Currently keystone uses public endpoint URL for signature verification.

Modified the URL passed to oauth signature verification to request URL.

Change-Id: I28059a43cb0088c2952c19f696042ebec54d26c9
Partial-Bug: #1687593
(cherry picked from commit 926685c5a4)
2017-07-14 14:02:25 +00:00
..
assignment Do not fetch group assignments without groups 2017-04-25 14:22:47 +00:00
auth Relax the requirement for mappings to result in group memberships 2016-09-01 03:24:27 +00:00
catalog Replace six iteration methods with standard ones 2016-09-08 18:56:31 +08:00
cmd Make bootstrap idempotent when it needs to be 2016-12-08 22:30:48 +00:00
common Fixes password created_at errors due to the server_default 2016-09-16 23:57:45 +00:00
conf Support nested groups in Active Directory 2016-11-11 03:06:46 +00:00
contrib Remove unnecessary __init__ 2016-08-24 10:00:05 +08:00
credential Log warning if null key is used for encryption 2016-09-07 18:38:49 +00:00
endpoint_policy Replace keystone.common.config with keystone.conf package 2016-06-24 17:02:15 +00:00
federation Validate mapping exists when creating/updating a protocol 2017-06-29 16:37:27 +00:00
identity Support nested groups in Active Directory 2016-11-11 03:06:46 +00:00
locale Imported Translations from Zanata 2016-12-13 06:43:07 +00:00
middleware Allow compatibility with keystonemiddleware 4.0.0 2016-09-14 13:56:34 +00:00
models Make returning is_domain conditional 2016-10-04 23:26:00 -05:00
oauth1 Handle token exception and use proper url for verification 2017-07-14 14:02:25 +00:00
policy Replace OpenStack LLC with OpenStack Foundation 2016-07-22 15:10:35 +05:30
resource TrivialFix: Merge imports in code 2016-09-12 18:05:07 +07:00
revoke Distributed cache namespace to invalidate regions 2016-08-29 16:38:55 +00:00
server Implement encryption of credentials at rest 2016-09-02 04:25:49 +00:00
tests Handle token exception and use proper url for verification 2017-07-14 14:02:25 +00:00
token Merge "Consistently round down timestamps" 2016-09-14 04:23:44 +00:00
trust Trust controller refactoring 2016-08-04 18:49:32 +03:00
v2_crud Pass request to v2 token authenticate 2016-07-15 13:33:39 +10:00
version Report v2.0 as deprecated in version discovery 2016-08-04 23:59:38 +03:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
exception.py Project domain must match role domain for assignment 2016-09-07 11:43:53 -07:00
i18n.py Change oslo.i18n to oslo_i18n 2015-02-09 18:10:07 -06:00
notifications.py Pass request to v2 token authenticate 2016-07-15 13:33:39 +10:00
service.py Create a version package 2015-10-12 23:59:16 +00:00