From 563dca705cc30250866438aae33942f4efcd3e17 Mon Sep 17 00:00:00 2001 From: pascal-fischer <32096965+pascal-fischer@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:40:15 +0200 Subject: [PATCH] [management] Fix session inactivity response (#2770) --- management/server/http/accounts_handler.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/management/server/http/accounts_handler.go b/management/server/http/accounts_handler.go index 4d4066de4..4baf9c692 100644 --- a/management/server/http/accounts_handler.go +++ b/management/server/http/accounts_handler.go @@ -137,13 +137,15 @@ func toAccountResponse(accountID string, settings *server.Settings) *api.Account } apiSettings := api.AccountSettings{ - PeerLoginExpiration: int(settings.PeerLoginExpiration.Seconds()), - PeerLoginExpirationEnabled: settings.PeerLoginExpirationEnabled, - GroupsPropagationEnabled: &settings.GroupsPropagationEnabled, - JwtGroupsEnabled: &settings.JWTGroupsEnabled, - JwtGroupsClaimName: &settings.JWTGroupsClaimName, - JwtAllowGroups: &jwtAllowGroups, - RegularUsersViewBlocked: settings.RegularUsersViewBlocked, + PeerLoginExpiration: int(settings.PeerLoginExpiration.Seconds()), + PeerLoginExpirationEnabled: settings.PeerLoginExpirationEnabled, + PeerInactivityExpiration: int(settings.PeerInactivityExpiration.Seconds()), + PeerInactivityExpirationEnabled: settings.PeerInactivityExpirationEnabled, + GroupsPropagationEnabled: &settings.GroupsPropagationEnabled, + JwtGroupsEnabled: &settings.JWTGroupsEnabled, + JwtGroupsClaimName: &settings.JWTGroupsClaimName, + JwtAllowGroups: &jwtAllowGroups, + RegularUsersViewBlocked: settings.RegularUsersViewBlocked, } if settings.Extra != nil {