Skip to content

Commit

Permalink
Merge pull request #56 from CanDIG/daisieh/user_id
Browse files Browse the repository at this point in the history
DIG-898: allow service_token to view user_key
  • Loading branch information
daisieh authored May 1, 2024
2 parents 0e9f58a + 9aba05c commit a989584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion permissions_engine/authz.rego
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ rights = {
"site_admin": {
"path": ["v1", "data", "permissions", "site_admin"]
},
"user_id": {
"path": ["v1", "data", "idp", "user_key"]
},
"tokenControlledAccessREMS": {
"path": ["v1", "data", "ga4ghPassport", "tokenControlledAccessREMS"]
}
Expand All @@ -29,7 +32,7 @@ tokens = {
"roles": ["admin"]
},
service_token : {
"roles": ["datasets", "allowed", "site_admin", "tokenControlledAccessREMS"]
"roles": ["datasets", "allowed", "site_admin", "user_id", "tokenControlledAccessREMS"]
}
}

Expand Down

0 comments on commit a989584

Please sign in to comment.