From 68afc83ce97bbe8dd4a466a62600e1b438c6d721 Mon Sep 17 00:00:00 2001 From: Nimi Wariboko Jr Date: Wed, 13 Nov 2019 13:07:25 -0800 Subject: [PATCH] Update the provided token's role to match the services' requested role. --- gatekeeper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gatekeeper.go b/gatekeeper.go index c9f001a..3aba1f1 100644 --- a/gatekeeper.go +++ b/gatekeeper.go @@ -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 } }