fix(SAML): check on empty nameID (#8714)

# Which Problems Are Solved

If a SAML IdP did not send a `NameID` (even though required by the
specification), ZITADEL would crash.

# How the Problems Are Solved

- Check specifically if the `Subject` and its `NameID` is passed

# Additional Changes

None

# Additional Context

- closes https://github.com/zitadel/zitadel/issues/8654

(cherry picked from commit 18499274dd)
This commit is contained in:
Livio Spring
2024-10-03 10:17:33 +02:00
parent b47f0f546f
commit 5215d98a30
2 changed files with 58 additions and 4 deletions

File diff suppressed because one or more lines are too long