zitadel/internal/eventstore/handler/v2
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
..
failed_event_get_count.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
failed_event_set.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
failed_event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
field_handler.go fix(fields): use read commit isolation level in trigger (#8410) 2024-08-09 09:24:28 +00:00
handler.go refactor(database): exchange connection pool (#8325) 2024-07-17 15:16:02 +00:00
init.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
log.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
mock_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
reduce.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
state_get_await.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_get.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_lock.sql feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
state_set.sql fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
state_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
state.go fix: handle context correctly in processEvents (#7320) 2024-01-31 11:25:28 +01:00
statement_test.go feat(oidc): sid claim for id_tokens issued through login V1 (#8525) 2024-09-03 13:19:00 +00:00
statement.go feat(oidc): sid claim for id_tokens issued through login V1 (#8525) 2024-09-03 13:19:00 +00:00