We want to logout users from all sessions in our application by the press of a button. For that we want to find each active session via the v2 REST API route /sessions/search , then iterate the returned list and call DELETE sessions/<sessions-id>
Environment: Self hosted Version: v4.16.1 Stack:
We are self hosting Zitadel v4.16.1, which resides in a docker container and is reachable via a Traefik reverse proxy. We use OIDC and use https://github.com/sevensolutions/traefik-oidc-auth as a Traefik OIDC Plugin. To configure Zitadel, we use .env files which contain various variables from the defaults.yml and steps.yml file (we prefer using .env directly instead of .yml files). Other aspects, such as organisations, projects, applications, etc are created at container start via a bash script and REST API. Our backend is written in Python.
What you expected to happen:
We call this route to fetch all existing session IDs of a user:
List sessions: Searches for sessions matching the given query. You can search by session ID, user ID, creation date, creator, user agent or expiration date. Required permissions:
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Z
ZITADEL
ZITADEL - Identity infrastructure, simplified for you.