zitadel/internal/api/grpc/user
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
..
schema/v3alpha fix: add action v2 execution to features (#7597) 2024-04-09 20:21:21 +03:00
v2 feat(saml): allow setting nameid-format and alternative mapping for transient format (#7979) 2024-05-23 05:04:07 +00:00
converter.go feat(crypto): use passwap for machine and app secrets (#7657) 2024-04-05 09:35:49 +00:00
membership.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
personal_access_token.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
query.go feat(api): add possibility to retrieve user schemas (#7614) 2024-03-22 13:26:13 +00:00
refresh_token.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
session.go fix: return absolute url for avatar in user sessions (#3724) 2022-05-30 11:27:52 +00:00
user_grant.go fix(console): display granted org name in authorizations and show user information (#7116) 2024-01-24 11:36:04 +01:00