Spring Security SAML2 - AuthN Request POST Binding requires CSP Header unsafe-inline scripts #11472
Labels
in: saml2
An issue in SAML2 modules
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Expected Behavior
When using the Content Security Policy (CSP) header and doing a SAML2 AuthN Request POST Binding, add support for 'self' or nonce or hash instead of forcing
unsafe-inline
.Current Behavior
When doing AuthN Requests with the SAML2 POST Binding, Spring Security creates HTML with an onload script to submit the SAML request
Saml2WebSsoAuthenticationRequestFilter.createSamlPostRequestFormData()
. In order for that onload script to work when using a CSP Header, I have to includescript-src
'unsafe-inline'
.The text was updated successfully, but these errors were encountered: