Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
go-sso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
id
go-sso
Commits
45c4f032
Commit
45c4f032
authored
Aug 18, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the NameID in the saml.Session
parent
6fe09ec2
Pipeline
#4105
passed with stages
in 3 minutes and 51 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
saml/saml.go
saml/saml.go
+1
-0
No files found.
saml/saml.go
View file @
45c4f032
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment