Commit 45c4f032 authored by ale's avatar ale

Set the NameID in the saml.Session

parent 6fe09ec2
Pipeline #4105 passed with stages
in 3 minutes and 51 seconds
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment