Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Update the provided token's role to match the services' requested role.
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosupremo committed Nov 13, 2019
1 parent db8593c commit 68afc83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gatekeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ func (g *Gatekeeper) RequestToken(providerKey string, taskId string, requestedRo
for _, role := range policy.Roles {
if requestedRole == role {
allowed = true
roleName = role
break
}
}
Expand Down

0 comments on commit 68afc83

Please sign in to comment.