Livio Spring
e57a9b57c8
feat(saml): allow setting nameid-format and alternative mapping for transient format ( #7979 )
...
# Which Problems Are Solved
ZITADEL currently always uses
`urn:oasis:names:tc:SAML:2.0:nameid-format:persistent` in SAML requests,
relying on the IdP to respect that flag and always return a peristent
nameid in order to be able to map the external user with an existing
user (idp link) in ZITADEL.
In case the IdP however returns a
`urn:oasis:names:tc:SAML:2.0:nameid-format:transient` (transient)
nameid, the attribute will differ between each request and it will not
be possible to match existing users.
# How the Problems Are Solved
This PR adds the following two options on SAML IdP:
- **nameIDFormat**: allows to set the nameid-format used in the SAML
Request
- **transientMappingAttributeName**: allows to set an attribute name,
which will be used instead of the nameid itself in case the returned
nameid-format is transient
# Additional Changes
To reduce impact on current installations, the `idp_templates6_saml`
table is altered with the two added columns by a setup job. New
installations will automatically get the table with the two columns
directly.
All idp unit tests are updated to use `expectEventstore` instead of the
deprecated `eventstoreExpect`.
# Additional Context
Closes #7483
Closes #7743
---------
Co-authored-by: peintnermax <max@caos.ch>
Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
2024-05-23 05:04:07 +00:00
..
2024-05-23 05:04:07 +00:00
2024-04-09 15:15:35 +02:00
2024-05-16 07:07:56 +02:00
2023-11-20 17:21:08 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-04-05 09:35:49 +00:00
2024-04-22 11:30:56 +02:00
2024-04-09 15:15:35 +02:00
2024-03-27 15:48:22 +02:00
2024-04-09 15:15:35 +02:00
2023-12-08 15:30:55 +01:00
2024-05-16 07:07:56 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-02-28 10:55:54 +02:00
2023-10-19 12:19:10 +02:00
2024-04-03 11:48:24 +03:00
2023-12-08 15:30:55 +01:00
2024-04-10 15:46:30 +00:00
2024-05-16 07:07:56 +02:00
2024-05-16 07:07:56 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-04-16 11:19:17 +00:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2023-10-19 12:19:10 +02:00
2023-12-08 15:30:55 +01:00
2024-03-14 09:56:23 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2024-04-10 15:46:30 +00:00
2023-12-08 15:30:55 +01:00
2024-05-23 05:04:07 +00:00
2024-05-23 05:04:07 +00:00
2023-12-08 15:30:55 +01:00
2024-04-10 15:46:30 +00:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-03-06 18:02:16 +00:00
2024-03-05 16:12:49 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2024-04-09 20:21:21 +03:00
2024-04-09 20:21:21 +03:00
2024-04-09 20:21:21 +03:00
2024-02-28 10:55:54 +02:00
2024-02-28 10:49:57 +00:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2024-01-29 15:11:52 +00:00
2024-01-29 15:11:52 +00:00
2023-12-08 15:30:55 +01:00
2024-04-10 09:14:55 +00:00
2024-04-10 09:14:55 +00:00
2023-11-20 17:21:08 +02:00
2024-03-27 15:48:22 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2022-06-14 07:51:00 +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-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-08-22 10:49:22 +00:00
2023-12-08 15:30:55 +01: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-04-03 10:43:43 +00:00
2024-03-27 15:48:22 +02:00
2024-05-17 09:52:15 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-03-27 15:48:22 +02:00
2024-05-13 16:01:50 +02:00
2024-05-13 16:01:50 +02: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-04-03 10:43:43 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2023-11-20 17:21:08 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-01-25 17:28:20 +01:00
2024-01-25 17:28:20 +01:00
2023-09-15 16:58:45 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-03-27 15:48:22 +02:00
2024-03-27 15:48:22 +02:00
2023-12-06 10:30:56 +00:00
2023-12-08 15:30:55 +01:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2023-12-08 15:30:55 +01:00
2024-04-05 09:35:49 +00:00
2024-02-28 10:21:11 +00:00
2024-04-03 10:43:43 +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-04-11 09:16:10 +02:00
2024-04-11 09:16:10 +02:00
2024-04-09 20:21:21 +03:00
2024-04-09 20:21:21 +03:00
2024-04-09 20:21:21 +03:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2024-05-04 11:55:57 +02:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2024-04-05 09:35:49 +00:00
2024-04-10 07:18:57 +00:00
2024-04-05 09:35:49 +00:00
2024-04-03 10:43:43 +00:00
2023-11-20 17:21:08 +02: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-04-05 09:35:49 +00:00
2024-04-10 07:18:57 +00:00
2023-12-08 15:30:55 +01:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-03-27 15:48:22 +02:00
2024-03-27 15:48:22 +02:00
2024-04-05 09:35:49 +00:00
2024-04-05 09:35:49 +00:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2024-04-09 15:15:35 +02:00
2023-11-20 17:21:08 +02:00