1
- Security considerations
2
- =======================
1
+ Introduction
2
+ ============
3
3
4
4
Authentication and Authorization are quite security relevant topics on its own.
5
5
Make sure you understand SAML2 and its implications, specifically the
@@ -12,9 +12,24 @@ need for direct communication between SP and IdP. However, for security the use
12
12
of cryptographic signatures (both while sending and receiving messages) must be
13
13
examined and the private keys in use must be kept closely guarded.
14
14
15
+ Content Security Policy
16
+ =======================
17
+
15
18
When using POST-Bindings, the Browser is presented with a small HTML-Form for
16
19
every redirect (both Login and Logout), which is sent using JavaScript and
17
20
sends the Data to the selected IdP. If your application uses technices such as
18
21
Content Security Policy, this might affect the calls. Since Version 1.9.0
19
22
djangosaml2 will detect if django-csp is installed and update the Content
20
23
Security Policy accordingly.
24
+
25
+ [ Content Security Policy] ( https://content-security-policy.com/ ) is an important
26
+ HTTP-Extension to prevent User Input or other harmful sources from manipulating
27
+ application data. Usage is strongly advised, see
28
+ [ OWASP Control] ( https://owasp.org/www-community/controls/Content_Security_Policy ) .
29
+
30
+ To enable CSP with [ django-csp] ( https://django-csp.readthedocs.io/ ) , simply
31
+ follow their [ installation] ( https://django-csp.readthedocs.io/en/latest/installation.html )
32
+ and [ configuration] ( https://django-csp.readthedocs.io/en/latest/configuration.html )
33
+ guides: djangosaml2 will automatically blend in and update the headers for
34
+ POST-bindings, so you must not include exceptions for djangosaml2 in your
35
+ global configuration.
0 commit comments