add project id to header in keycloak

Change-Id: I7a217165dd99a2cf997a2d661ef7a51e22a10209
This commit is contained in:
Eyal 2018-03-19 14:42:20 +02:00
parent c90ec5c7b8
commit 7fc2d5e2a0

View File

@ -116,6 +116,7 @@ class KeycloakAuth(base.ConfigurableMiddleware):
def _set_req_headers(self, req):
req.headers['X-Identity-Status'] = 'Confirmed'
req.headers['X-Roles'] = self.roles
req.headers["X-Project-Id"] = self.realm_name
def _unauthorized(self, message):
body = {'error': {