mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
fix(idp): use persistent nameid-format in saml request (#7745)
(cherry picked from commit 3711130d42
)
This commit is contained in:
parent
7ef95c9194
commit
6136812dd8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user