question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable session limits

See original GitHub issue

Description

  • Kill existing sessions is the most common request

  • Specify the maximum number of allowable user concurrent sessions. Replace existing session with new one when user logins and the maximum count of sessions per user is already reached. The killed session is the one, which was used last (has oldest lastAccessTime of all user sessions)

  • Implementation will use authenticator user-session-limits, which can be added to authentication flows. Session limit is the configurable option of the authenticator

  • Alternatively, login sends a “maximum sessions” error if the maximum concurrent sessions value exceeds this number. This is an option of the authenticator as well (False by default)

  • Last configurable option is “limit of sessions per user and client” . If used, user can have maximum amount of sessions per client.

Discussion

No response

Motivation

No response

Details

See KEYCLOAK-18386

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:33 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
danielFesenmeyercommented, Jul 12, 2022

@kunalgithub: I found that it’s documented in the Server Admin Guide, in the step-up-flow section (https://www.keycloak.org/docs/latest/server_admin/index.html#_step-up-flow, see sub-section “User session limits”).

@mposolda Because the session limits are not limited to the step-up-flow, it would probably make sense to move this sub-section one level up. WDYT?

2reactions
mposoldacommented, Mar 8, 2022

@danielFesenmeyer Not yet. It is going to be added soon 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

[KEYCLOAK-849] Enhance configurable session limits - Red Hat
As an admin I want to be able to configure maximum active sessions per user, with an option to terminate oldest session or...
Read more >
Configuring RDP/RDS Sessions Limits (Timeouts) on Windows
The settings of RDP session timeouts are located in the following GPO section Computer Configuration -> Policies -> Administrative Templates -> ...
Read more >
Specifying Session Limits
Valid numbers for the minimum amount of sessions are between 0 and the license limit. A default of 0 means there are no...
Read more >
How to Configure Service Set Limits for Next Gen Services
Specify the maximum number of sessions allowed simultaneously on the service set. If you specify the maximum number of sessions to be zero,...
Read more >
How to configure Session Limit and Bandwidth Control to ...
Session Limit feature limits the number of sessions that a LAN host can use. This feature can prevent the router's resources and bandwidth...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found