mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-12 09:23:39 +00:00
fix: use configured binding on SAML IDPs and make sure CSP doesn't block POST binding (#7341)
fix: use configured binding on SAML IDPs and make sure CSP doesn't block POST binding
This commit is contained in:
parent
c081f72d85
commit
7f7fb55f34
@ -105,7 +105,7 @@ func csp() *middleware.CSP {
|
|||||||
csp := middleware.DefaultSCP
|
csp := middleware.DefaultSCP
|
||||||
csp.ObjectSrc = middleware.CSPSourceOptsSelf()
|
csp.ObjectSrc = middleware.CSPSourceOptsSelf()
|
||||||
csp.StyleSrc = csp.StyleSrc.AddNonce()
|
csp.StyleSrc = csp.StyleSrc.AddNonce()
|
||||||
csp.ScriptSrc = csp.ScriptSrc.AddNonce()
|
csp.ScriptSrc = csp.ScriptSrc.AddNonce().AddHash("sha256", "AjPdJSbZmeWHnEc5ykvJFay8FTWeTeRbs9dutfZ0HqE=")
|
||||||
return &csp
|
return &csp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,6 +159,9 @@ func (p *Provider) GetSP() (*samlsp.Middleware, error) {
|
|||||||
if p.requestTracker != nil {
|
if p.requestTracker != nil {
|
||||||
sp.RequestTracker = p.requestTracker
|
sp.RequestTracker = p.requestTracker
|
||||||
}
|
}
|
||||||
|
if p.binding != "" {
|
||||||
|
sp.Binding = p.binding
|
||||||
|
}
|
||||||
return sp, nil
|
return sp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user