fix(idp): use persistent nameid-format in saml request (#7745)

This commit is contained in:
Livio Spring 2024-04-10 12:05:07 +02:00 committed by GitHub
parent a282ac09a1
commit 3711130d42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,6 +156,10 @@ func (p *Provider) GetSP() (*samlsp.Middleware, error) {
if err != nil {
return nil, zerrors.ThrowInternal(err, "SAML-qee09ffuq5", "Errors.Intent.IDPInvalid")
}
// the library uses transient as default, which we currently can't handle (https://github.com/zitadel/zitadel/discussions/7421)
// for the moment we'll use persistent (for those who actually use it from the saml request) and add an option
// later on to specify on the provider: https://github.com/zitadel/zitadel/issues/7743
sp.ServiceProvider.AuthnNameIDFormat = saml.PersistentNameIDFormat
if p.requestTracker != nil {
sp.RequestTracker = p.requestTracker
}