Skip to content

Commit

Permalink
Merge pull request #1109 from neicnordic/hotfix/auth-resigned-token-ttl
Browse files Browse the repository at this point in the history
[AUTH] Enable configurable TTL for resigned OIDC token
  • Loading branch information
jbygdell authored Nov 4, 2024
2 parents 45fd543 + 81bcf8b commit bc01890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sda/cmd/auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (auth AuthHandler) elixirLogin(ctx iris.Context) *OIDCData {

if auth.Config.ResignJwt {
claims := map[string]interface{}{
jwt.ExpirationKey: time.Now().UTC().Add(200 * time.Hour),
jwt.ExpirationKey: time.Now().UTC().Add(time.Duration(auth.Config.JwtTTL) * time.Hour),
jwt.IssuedAtKey: time.Now().UTC(),
jwt.IssuerKey: auth.Config.JwtIssuer,
jwt.SubjectKey: idStruct.User,
Expand Down

0 comments on commit bc01890

Please sign in to comment.