Livio Spring
382a97c30f
feat(oidc): end session by id_token_hint and without cookie ( #8542 )
...
# Which Problems Are Solved
The end_session_endpoint currently always requires the userAgent cookie
to be able to terminate session created through the hosted login UI.
Only tokens issued through the Login V2 can be used to directly
terminate a specific session and without the need of a cookie.
This PR adds the possibility to terminate a single V1 session or all V1
sessions belonging to the same user agent without the need of the
userAgent cookie by providing an id_token as `id_token_hint` which
contains the id of a V1 session as `sid`.
# How the Problems Are Solved
- #8525 added the `sid` claim for id_tokens issued through the login UI
- The `sid` can now be checked for the `V1_` prefix and queries for
either the userAgentID and depending on the
`OIDCSingleV1SessionTermination` flag all userIDs of active session from
the same user agent id
- The `OIDCSingleV1SessionTermination` flag is added with default value
false to keep the existing behavior of terminating all sessions even in
case of providing an id_token_hint
# Additional Changes
- pass `context.Context` into session view functions for querying the
database with that context
# Additional Context
- relates to #8499
- closes #8501
2024-09-04 10:14:50 +00:00
..
2023-12-08 15:30:55 +01:00
2024-05-04 11:55:57 +02:00
2024-07-31 14:42:12 +02:00
2024-08-12 22:32:01 +02:00
2024-07-31 14:42:12 +02:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2024-08-12 22:32:01 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-06-17 09:50:12 +00:00
2024-08-12 22:32:01 +02:00
2024-06-17 09:50:12 +00:00
2023-12-05 17:01:03 +00:00
2024-08-14 14:18:14 +00:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-04-05 09:35:49 +00:00
2024-08-28 05:33:20 +00:00
2024-08-28 05:33:20 +00:00
2022-12-01 13:31:46 +01:00
2022-04-26 23:01:45 +00:00
2024-09-03 13:19:00 +00:00
2024-09-03 13:19:00 +00:00
2024-09-03 13:19:00 +00:00
2024-04-05 09:35:49 +00:00
2023-10-19 15:21:31 +00:00
2022-04-26 23:01:45 +00:00
2022-04-26 23:01:45 +00:00
2022-10-17 19:19:15 +00:00
2024-05-07 06:11:20 +00:00
2024-08-12 22:32:01 +02:00
2024-07-04 14:11:06 +00:00
2023-12-08 15:30:55 +01:00
2024-05-23 05:04:07 +00:00
2024-06-19 12:56:33 +02:00
2024-05-13 16:01:50 +02:00
2024-04-03 10:43:43 +00:00
2024-08-28 05:33:20 +00:00
2024-06-17 12:47:38 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-17 12:47:38 +00:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2023-10-19 15:21:31 +00:00
2024-08-12 22:32:01 +02:00
2024-07-31 18:00:38 +03:00
2024-09-04 10:14:50 +00:00
2024-09-04 10:14:50 +00:00
2024-09-04 10:14:50 +00:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2024-04-09 19:32:00 +00:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-05-23 05:04:07 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2024-05-23 05:04:07 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-11 09:16:10 +02:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2023-12-21 10:03:37 +01:00
2023-10-26 05:54:09 +00:00
2024-08-12 22:32:01 +02:00
2024-05-23 12:28:46 +02:00
2022-04-26 23:01:45 +00:00
2023-10-19 12:19:10 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-19 10:25:50 +00:00
2024-04-03 10:43:43 +00:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-01-25 09:49:41 +01:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-10 09:14:55 +00:00
2024-08-12 22:32:01 +02:00
2024-05-30 22:08:48 +00:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2024-05-13 16:01:50 +02:00
2024-03-20 10:18:46 +00:00
2024-02-28 10:21:11 +00:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-11 09:16:10 +02:00
2024-08-12 22:32:01 +02:00
2024-08-12 22:32:01 +02:00
2024-07-31 18:00:38 +03:00
2024-07-31 18:00:38 +03:00
2024-08-14 14:18:14 +00:00
2022-04-26 23:01:45 +00:00
2024-08-14 14:18:14 +00:00
2024-08-14 14:18:14 +00:00
2024-01-17 10:16:48 +00:00
2024-01-17 10:16:48 +00:00
2024-08-12 22:32:01 +02:00
2024-01-17 10:16:48 +00:00
2024-07-31 18:00:38 +03:00
2022-04-26 23:01:45 +00:00
2022-10-07 09:44:28 +00:00
2023-07-06 08:38:13 +02:00
2022-04-26 23:01:45 +00:00
2024-05-16 07:07:56 +02:00
2024-09-03 13:19:00 +00:00
2024-09-03 13:19:00 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-05-13 16:01:50 +02:00
2022-04-26 23:01:45 +00:00
2024-08-28 05:33:20 +00:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2023-10-19 15:21:31 +00:00
2024-08-12 22:32:01 +02:00
2024-07-31 18:00:38 +03:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-05-23 05:04:07 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2024-05-23 05:04:07 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2022-09-20 14:32:09 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2022-11-30 17:01:17 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-10 09:14:55 +00:00
2024-04-10 09:14:55 +00:00
2024-06-19 12:56:33 +02:00
2022-11-30 17:01:17 +01:00
2022-04-26 23:01:45 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-01-25 09:49:41 +01:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-07-31 18:00:38 +03:00
2024-07-31 18:00:38 +03:00
2023-12-08 15:30:55 +01:00
2024-04-05 09:35:49 +00:00
2023-10-26 05:54:09 +00:00
2022-04-26 23:01:45 +00:00
2023-07-20 04:06:16 +00:00
2022-04-26 23:01:45 +00:00
2023-01-25 09:49:41 +01:00
2022-12-08 08:11:49 +01:00
2022-04-26 23:01:45 +00:00
2023-12-08 15:30:55 +01:00
2024-04-10 09:14:55 +00:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-08-28 18:19:50 +00:00
2024-08-28 18:19:50 +00:00
2024-04-03 10:43:43 +00:00
2024-04-05 09:35:49 +00:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2024-04-05 09:35:49 +00:00
2024-08-28 18:19:50 +00:00
2024-08-28 18:19:50 +00:00
2023-04-05 11:42:00 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2023-04-11 15:07:32 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-20 13:31:58 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-07-04 16:18:43 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2024-07-03 15:00:56 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-07-03 15:00:56 +00:00
2024-08-12 22:32:01 +02:00
2024-07-03 15:00:56 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-10-19 12:19:10 +02:00
2023-09-15 16:58:45 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2023-12-09 08:59:51 +00:00
2023-12-05 11:12:01 +00:00
2024-08-12 22:32:01 +02:00
2024-04-08 08:15:44 +00:00
2023-08-11 15:36:18 +00:00
2024-05-16 07:07:56 +02:00
2024-05-30 22:08:48 +00:00
2024-05-30 22:08:48 +00:00
2024-08-12 22:32:01 +02:00
2024-05-30 22:08:48 +00:00
2023-12-08 15:30:55 +01:00
2024-05-30 22:08:48 +00:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2024-06-20 19:51:42 +00:00
2022-04-26 23:01:45 +00:00
2024-09-04 10:14:50 +00:00
2024-09-04 10:14:50 +00:00
2024-09-04 10:14:50 +00:00
2023-10-19 15:21:31 +00:00
2024-01-02 14:26:31 +00:00
2024-05-16 07:07:56 +02:00
2023-12-08 15:30:55 +01:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2022-08-24 11:38:59 +02:00
2024-08-12 22:32:01 +02:00
2024-07-04 16:18:43 +00:00
2024-04-03 10:43:43 +00:00
2022-04-26 23:01:45 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-24 17:50:58 +02:00
2024-08-12 22:32:01 +02:00
2024-07-17 06:43:07 +02:00
2024-04-24 17:50:58 +02:00
2024-08-12 22:32:01 +02:00
2024-05-02 11:50:13 +02:00
2023-09-07 14:06:11 +00:00
2024-05-30 22:08:48 +00:00
2024-08-12 22:32:01 +02:00
2024-07-31 18:00:38 +03:00
2024-04-05 09:35:49 +00:00
2024-08-12 22:32:01 +02:00
2024-07-31 14:23:57 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-05-16 07:07:56 +02:00
2024-08-14 13:04:26 +00:00
2023-08-11 15:36:18 +00:00
2024-07-26 22:39:55 +02:00
2024-07-05 09:36:00 +02:00
2023-08-04 11:35:36 +02:00
2024-08-14 13:04:26 +00:00
2024-08-14 13:04:26 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-05 09:35:49 +00:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2022-07-06 14:09:49 +02:00
2022-11-30 17:01:17 +01:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-08-28 19:46:45 +00:00
2024-08-28 19:46:45 +00:00
2024-08-28 19:46:45 +00:00
2024-08-12 22:32:01 +02:00
2024-08-12 22:32:01 +02:00
2024-05-03 07:23:40 +00:00
2024-08-12 22:32:01 +02:00
2024-07-05 09:36:00 +02:00
2024-05-03 07:23:40 +00:00
2024-04-05 09:35:49 +00:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2024-02-14 07:22:55 +00:00
2024-07-24 13:46:07 +00:00
2024-08-12 22:32:01 +02:00
2024-05-14 09:20:31 +02:00
2024-05-07 05:38:26 +00:00
2024-07-31 18:00:38 +03:00
2024-05-07 05:38:26 +00:00
2024-07-05 09:36:00 +02:00
2023-12-21 10:03:37 +01:00
2024-08-28 19:46:45 +00:00
2024-08-28 19:46:45 +00:00
2024-08-28 19:46:45 +00:00
2024-07-31 18:00:38 +03:00
2024-08-14 14:18:14 +00:00
2024-08-14 14:18:14 +00:00
2024-08-14 14:18:14 +00:00