diff --git a/rootfs/etc/nginx/lua/stratio_auth.lua b/rootfs/etc/nginx/lua/stratio_auth.lua index da0ed5dc43..dad60b4514 100644 --- a/rootfs/etc/nginx/lua/stratio_auth.lua +++ b/rootfs/etc/nginx/lua/stratio_auth.lua @@ -45,7 +45,10 @@ local function create_jwt(oauth2_cookie, userinfo_url, signing_key) groups = userinfo["groups"], mail = userinfo["email"], tenant = userinfo["tenant"], - uid = userinfo["user"] + uid = userinfo["user"], + username = userinfo["username"], + tenants = userinfo["tenants"], + equipo = "gosec" } } )