Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GOAL-1240] Add new parameters to user jwt #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rootfs/etc/nginx/lua/stratio_auth.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Collaborator

@Alvaro-Campesino Alvaro-Campesino Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sólo porque lo he visto cuando nos comentábais esto.
¿No sería mejor si todas las variables son en inglés mantenenerlo así?.

Suggested change
equipo = "gosec"
team = "gosec"

Que igual al ser prueba esto no va luego a ningún sitio, pero bueno, por si acaso.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si perdona, es una prueba para una poc, de hecho ese campo ni va a ir, solo era para testear

}
}
)
Expand Down