Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbac: fixing format for rh identity header after gunicorn update. #126

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions opl/rbac_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def load_apps_and_perms(url_base, x_rh_identity, application=[]):

url = f"{url_base}/permissions/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -125,7 +125,7 @@ def create_tenant(url_base, x_rh_identity):
# with unknown account will create new tenant for it
url = f"{url_base}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -136,7 +136,7 @@ def create_tenant(url_base, x_rh_identity):
def create_group(url_base, x_rh_identity):
url = f"{url_base}/groups/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -151,7 +151,7 @@ def create_group(url_base, x_rh_identity):
def create_role(url_base, x_rh_identity):
url = f"{url_base}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand All @@ -166,7 +166,7 @@ def create_role(url_base, x_rh_identity):
def add_roles_to_group(url_base, x_rh_identity, role_list, group_uuid):
url = f"{url_base}/groups/{group_uuid}/roles/"
headers = {
"X_RH_IDENTITY": x_rh_identity,
"X-RH-IDENTITY": x_rh_identity,
"Accept": "application/json",
"Content-Type": "application/json",
}
Expand Down
Loading