]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove deprecated fields in keystone auth middleware
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Sat, 26 Oct 2013 06:22:45 +0000 (15:22 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Sat, 26 Oct 2013 06:22:45 +0000 (15:22 +0900)
commit83a3e77e63851c290e2f849db6db555cffb1ef41
tree7b13bf2bacde5e51c6db06fb8824a2cf04bd6109
parent7ce5368ee0ed541e98e83be33370c4193a5c4a2a
Remove deprecated fields in keystone auth middleware

This commit makes the following changes:

Use X_PROJECT_ID instead of X_TENANT_ID:
  In the latest keystone auth_token middleware it is recommended to
  use X_PROJECT_ID instead of X_TENANT_ID. X_PROJECT_ID is supported
  in auth_token middleware for both keystone v2 and v3 API.
  The corresponding change was done in keystoneclient before Grizzly
  release, so we don't need to take care of X_TENANT_ID now.

USE X_ROLES instead of X_ROLE:
  X_ROLES is now recommended.
  X_ROLE exists just for diablo backward compatibility.

Remove X_TENANT and X_USER:
  X_TENANT and X_USER are for diablo backward compatibility.
  We no longer need take care of them in Icehouse Neutron.

Change-Id: Ie714b1323ff8c44dbee66b54e683226cf675b104
Closes-Bug: #1242447
neutron/auth.py
neutron/tests/unit/test_auth.py