Skip to content

Commit

Permalink
allow service_token to view user_key
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed May 1, 2024
1 parent 0e9f58a commit 9aba05c
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 9aba05c

Please sign in to comment.