Skip to content

Commit

Permalink
Merge pull request #64 from CanDIG/daisieh/auth-header
Browse files Browse the repository at this point in the history
Authorization header still required
  • Loading branch information
daisieh authored Sep 8, 2022
2 parents b8d9cd8 + afac44d commit 5782215
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 5782215

Please sign in to comment.