Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
daas
jwt-tokenissuer
Commits
ddb6cf8f
Commit
ddb6cf8f
authored
May 02, 2017
by
Gurvinder Singh
Browse files
changed header name to comply with dataporten
parent
6ecbf649
Changes
1
Show whitespace changes
Inline
Side-by-side
jwt.go
View file @
ddb6cf8f
...
...
@@ -96,7 +96,7 @@ func (jwm *JWTMiddleware) getJWTToken(
claims
.
SetIssuedAt
(
now
)
claims
.
SetAudience
(
aud
)
claims
.
Set
(
"principals"
,
principals
)
claims
.
Set
(
"acr_values"
,
r
.
Header
.
Get
(
"X-Dataporten-Acr
-Values
"
))
claims
.
Set
(
"acr_values"
,
r
.
Header
.
Get
(
"X-Dataporten-Acr"
))
claims
.
Set
(
"userid-sec"
,
r
.
Header
.
Get
(
"X-Dataporten-Userid-Sec"
))
claims
.
SetIssuer
(
conf
.
GetStringValue
(
"engine.issuer_url"
))
claims
.
SetExpiration
(
now
.
Add
(
time
.
Duration
(
lifeTime
)
*
time
.
Second
))
...
...
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