Skip to content

Commit

Permalink
pass in the other auth token too
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Sep 8, 2022
1 parent b8d9cd8 commit afac44d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chord_metadata_service/restapi/candig_authz_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def get_opa_datasets(self, token, path, method):
try:
response = requests.post(
settings.CANDIG_OPA_URL + "/v1/data/permissions/datasets",
headers={"X-Opa": f"{settings.CANDIG_OPA_SECRET}"},
headers={
"X-Opa": f"{settings.CANDIG_OPA_SECRET}",
"Authorization": f"Bearer {token}"
},
json={
"input": {
"token": token,
Expand Down

0 comments on commit afac44d

Please sign in to comment.