Skip to content
Snippets Groups Projects
Commit 45c4f032 authored by ale's avatar ale
Browse files

Set the NameID in the saml.Session

parent 6fe09ec2
No related branches found
No related tags found
No related merge requests found
......@@ -199,6 +199,7 @@ func (b *userFileBackend) GetSession(w http.ResponseWriter, r *http.Request, req
CreateTime: saml.TimeNow(),
ExpireTime: saml.TimeNow().Add(sessionMaxAge),
Index: hex.EncodeToString(randomBytes(32)),
NameID: user.Name,
UserName: user.Name,
UserEmail: user.Email,
UserCommonName: user.Name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment