Z
ZITADEL
Z
ZITADEL
Limit number of user sessions
Original message was deleted
ZITADEL
Join
ZITADEL - Identity infrastructure, simplified for you.
4,316
Members
View on Discord
F
FFO
•
9/23/24, 2:34 PM
ATM I do not think we have a session amount limit
, but that question came up on another thread as well
.
Can you elaborate a little more on why you try to do that
?
F
FFO
•
9/24/24, 8:37 AM
Got it
, thanks for sharing
!
While we do not have this as a default feature it could be added with some glue code
, let me try and give you some ideas here
:
1
) If you use the session
-api
(a custom login ui
) you could use the session search to pull up the last sessions during
/after a login
https://zitadel.com/docs/apis/resources/session_service_v2/session-service-list-sessions
and then terminate the oldest
https://zitadel.com/docs/apis/resources/session_service_v2/session-service-delete-session
2
) If you want to use our login
, our
"new
" actions you could send the http request to a cloud function on your end and check if a user has a certain amount of sessions and the terminate the oldest one
F
FFO
•
9/24/24, 8:38 AM
CC
@fabienne this might be an interesting thing for the product roadmap or a potential actions marketplace