add project id to header in keycloak
Change-Id: I7a217165dd99a2cf997a2d661ef7a51e22a10209
This commit is contained in:
parent
c90ec5c7b8
commit
7fc2d5e2a0
@ -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': {
|
||||
|
Loading…
Reference in New Issue
Block a user