Livio Spring 9361a7f0dd
perf(authZ): improve oidc session check (#8091)
# Which Problems Are Solved

Access token checks make sure that there have not been any termination
events (user locked, deactivated, signed out, ...) in the meantime. This
events were filtered based on the creation date of the last session
event, which might cause latency issues in the database.

# How the Problems Are Solved

- Changed the query to use `position` instead of `created_at`.
- removed `AwaitOpenTransactions`

# Additional Changes

Added the `position` field to the `ReadModel`.

# Additional Context

- relates to #8088
- part of #7639
- backport to 2.53.x

(cherry picked from commit 931a6c7ccef71f8626ff8285d360d98a17e720b1)
2024-06-13 13:55:04 +02:00
..
2024-05-30 09:35:30 +00:00
2023-12-05 11:12:01 +00:00
2021-07-06 13:55:57 +02:00
2024-03-27 15:48:22 +02:00
2024-03-27 15:48:22 +02:00