Skip to content

Commit

Permalink
[management] Fix session inactivity response (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer authored Oct 23, 2024
1 parent 7bda385 commit 563dca7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions management/server/http/accounts_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 563dca7

Please sign in to comment.