keystone/keystone
Lance Bragstad ce46cc25dc Reduce duplication in federated auth APIs
The GET /v3/OS-FEDERATION/projects and GET /v3/OS-FEDERATION/domains
APIs were introduced to handle tokens from federated users, but now
that GET /v3/auth/projects and GET /v3/auth/domains know how to handle
federated tokens, they're just duplicate APIs.

In the past we deprecated these federated auth APIs, but they still
used separate code paths from GET /v3/auth/projects and GET
/v3/auth/domains. The two code paths are true duplication in that they
don't expect to differ over time and should provide the same user
experience.

Instead of running the risk that comes with two code paths that do the
same thing, we should consolidate them.

Conflicts:
  keystone/federation/controllers.py due to the fact that pre-Queens
  code used a different dependency framework. This was reworked in
  the Queens release, causing a conflict with this patch since it
  touches the same code.

Co-Authored-By: Kristi Nikolla <kristi@nikolla.me>

Closes-Bug: 1779205
Change-Id: Ib906c42e1dd2c2408ccd2e256ffd876af02af3fe
(cherry picked from commit df5d75571e)
2018-07-25 15:40:33 +00:00
..
assignment Cache list projects and domains for user 2017-08-09 14:45:58 +00:00
auth Merge "Add annotation about token authenticate" 2017-06-23 21:31:03 +00:00
catalog Ensure the endpoint filter API supports HEAD 2017-06-13 14:03:14 +00:00
cmd Remove deprecation of domain_config_upload 2017-08-16 14:45:55 +00:00
common Fix json schema nullable to add None to ENUM 2018-04-19 13:25:02 +00:00
conf Resource backend is SQL only now 2017-08-14 19:00:37 +00:00
contrib Fix ec2tokens validation in v2 after regression in metadata_ref removal 2017-07-28 16:20:53 +02:00
credential Merge "Make use of Dict-base including extras explicit" 2017-03-31 20:11:14 +00:00
endpoint_policy Ensure the endpoint policy API supports HEAD 2017-06-20 19:44:43 +00:00
federation Reduce duplication in federated auth APIs 2018-07-25 15:40:33 +00:00
identity Delete SQL users before deleting domain 2018-02-09 00:19:33 +01:00
locale Imported Translations from Zanata 2017-08-02 07:49:09 +00:00
middleware Make an error state message more explicit 2017-08-08 14:53:20 -07:00
models Revert change 438035 is_admin_project default 2017-05-11 10:46:03 -04:00
oauth1 Ensure oauth API supports HEAD 2017-06-21 15:00:38 +00:00
policy Remove unused CONF 2017-04-22 15:22:05 +08:00
resource Delete SQL users before deleting domain 2018-02-09 00:19:33 +01:00
revoke Remove unused revoke_by_domain_role_assignment 2017-03-24 15:22:04 +00:00
server Merge "Remove log translations in keystone" 2017-03-27 17:35:03 +00:00
tests Reduce duplication in federated auth APIs 2018-07-25 15:40:33 +00:00
token Remove duplicate roles from federated auth 2017-08-16 15:22:36 +00:00
trust Merge "Ensure the trust API supports HEAD requests" 2017-06-23 05:23:13 +00:00
v2_crud Use https for docs.openstack.org references 2017-01-30 16:05:08 -08:00
version Remove log translations in keystone 2017-03-25 18:17:15 +00:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
exception.py Handle ldap size limit exeeded exception 2017-10-25 02:06:08 +00:00
i18n.py Remove log translations in keystone 2017-03-25 18:17:15 +00:00
notifications.py Delete SQL users before deleting domain 2018-02-09 00:19:33 +01:00