diff --git a/builtin/credential/github/path_login.go b/builtin/credential/github/path_login.go index 7856eeb9fa..6519850539 100644 --- a/builtin/credential/github/path_login.go +++ b/builtin/credential/github/path_login.go @@ -123,6 +123,7 @@ func (b *backend) pathLoginRenew(ctx context.Context, req *logical.Request, d *f } resp := &logical.Response{Auth: req.Auth} + resp.Auth.Period = verifyResp.Config.TokenPeriod resp.Auth.TTL = verifyResp.Config.TokenTTL resp.Auth.MaxTTL = verifyResp.Config.TokenMaxTTL diff --git a/builtin/credential/ldap/path_login.go b/builtin/credential/ldap/path_login.go index 852aad61e3..b171dde061 100644 --- a/builtin/credential/ldap/path_login.go +++ b/builtin/credential/ldap/path_login.go @@ -134,6 +134,7 @@ func (b *backend) pathLoginRenew(ctx context.Context, req *logical.Request, d *f } resp.Auth = req.Auth + resp.Auth.Period = cfg.TokenPeriod resp.Auth.TTL = cfg.TokenTTL resp.Auth.MaxTTL = cfg.TokenMaxTTL diff --git a/builtin/credential/okta/path_login.go b/builtin/credential/okta/path_login.go index 8b300b76c3..8538a7a3c9 100644 --- a/builtin/credential/okta/path_login.go +++ b/builtin/credential/okta/path_login.go @@ -131,6 +131,7 @@ func (b *backend) pathLoginRenew(ctx context.Context, req *logical.Request, d *f } resp.Auth = req.Auth + resp.Auth.Period = cfg.TokenPeriod resp.Auth.TTL = cfg.TokenTTL resp.Auth.MaxTTL = cfg.TokenMaxTTL diff --git a/builtin/credential/radius/path_login.go b/builtin/credential/radius/path_login.go index be07e335f4..c0442935d5 100644 --- a/builtin/credential/radius/path_login.go +++ b/builtin/credential/radius/path_login.go @@ -147,6 +147,7 @@ func (b *backend) pathLoginRenew(ctx context.Context, req *logical.Request, d *f return nil, fmt.Errorf("policies have changed, not renewing") } + req.Auth.Period = cfg.TokenPeriod req.Auth.TTL = cfg.TokenTTL req.Auth.MaxTTL = cfg.TokenMaxTTL return &logical.Response{Auth: req.Auth}, nil diff --git a/builtin/credential/userpass/path_login.go b/builtin/credential/userpass/path_login.go index bb5145fcd5..1bda2fce44 100644 --- a/builtin/credential/userpass/path_login.go +++ b/builtin/credential/userpass/path_login.go @@ -140,6 +140,7 @@ func (b *backend) pathLoginRenew(ctx context.Context, req *logical.Request, d *f } resp := &logical.Response{Auth: req.Auth} + resp.Auth.Period = user.TokenPeriod resp.Auth.TTL = user.TokenTTL resp.Auth.MaxTTL = user.TokenMaxTTL return resp, nil