zitadel/internal/eventstore
Livio Spring 9ec9ad4314
feat(oidc): sid claim for id_tokens issued through login V1 (#8525)
# Which Problems Are Solved

id_tokens issued for auth requests created through the login UI
currently do not provide a sid claim.
This is due to the fact that (SSO) sessions for the login UI do not have
one and are only computed by the userAgent(ID), the user(ID) and the
authentication checks of the latter.

This prevents client to track sessions and terminate specific session on
the end_session_endpoint.

# How the Problems Are Solved

- An `id` column is added to the `auth.user_sessions` table.
- The `id` (prefixed with `V1_`) is set whenever a session is added or
updated to active (from terminated)
- The id is passed to the `oidc session` (as v2 sessionIDs), to expose
it as `sid` claim

# Additional Changes

- refactored `getUpdateCols` to handle different column value types and
add arguments for query

# Additional Context

- closes #8499 
- relates to #8501
2024-09-03 13:19:00 +00:00
..
handler feat(oidc): sid claim for id_tokens issued through login V1 (#8525) 2024-09-03 13:19:00 +00:00
repository feat(v3alpha): web key resource (#8262) 2024-08-14 14:18:14 +00:00
v1/models refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v3 fix(fields): use read commit isolation level in trigger (#8410) 2024-08-09 09:24:28 +00:00
aggregate.go feat(v3alpha): web key resource (#8262) 2024-08-14 14:18:14 +00:00
asset.go fix(eventstore): sub queries (#1805) 2021-07-06 13:55:57 +02:00
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
event_base.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
event.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
eventstore.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
field.go feat(eventstore): add search table (#8191) 2024-07-03 15:00:56 +00:00
local_crdb_test.go fix(init): add setting to enable durable locks on crdb (#7982) 2024-05-27 09:03:34 +00:00
read_model.go perf(authZ): improve oidc session check (#8091) 2024-06-12 09:11:36 +00:00
search_query_test.go fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
search_query.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00