Commit Graph

2 Commits

Author SHA1 Message Date
Samuel de Medeiros Queiroz
e923a14afd Cleans up code for is_admin in tokens
This patch cleans up the code [1] based on comments left in the review.

[1] https://review.openstack.org/#/c/240719/

Change-Id: I972621c22afefa9bd5f32caf67fd1bf3b6822a3d
2015-12-07 19:30:37 -03:00
Adam Young
e7023697a8 set is_admin on tokens for admin project
Adds two new configuration value:

admin_project_name
admin_project_domain_name

If both values are set, and tokens requested for
projects (only, not domains) that match both will have an
additional value in them;  `is_admin_project=true`

DocImpact
-- Configuration changes need documentation
APIImpact
-- Adds optional return values in token validation calls
SecurityImpact
-- Should be helpful in making access control decisions

Implements: blueprint is-admin-project
Partial-Bug: #968696

Change-Id: Ic9cf9862739381a30130b4be87075f726736ff88
2015-12-01 10:33:27 -05:00