Skip to content

Commit 8f545f1

Browse files
committed
add draft for security considerations
1 parent decef2f commit 8f545f1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/source/contents/security.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Security considerations
2+
=======================
3+
4+
Authentication and Authorization are quite security relevant topics on its own.
5+
Make sure you understand SAML2 and its implications, specifically the
6+
separation of duties between Service Provider (SP) and Identity Provider (IdP):
7+
This Library aims to support a Service Provider in running Authentication
8+
against one or more IdP.
9+
10+
Communication between SP and IdP is routed via the Browser, eliminating the
11+
need for direct communication between SP and IdP. However, for security the use
12+
of cryptographic signatures (both while sending and receiving messages) must be
13+
examined and the private keys in use must be kept closely guarded.
14+
15+
When using POST-Bindings, the Browser is presented with a small HTML-Form for
16+
every redirect (both Login and Logout), which is sent using JavaScript and
17+
sends the Data to the selected IdP. If your application uses technices such as
18+
Content Security Policy, this might affect the calls. Since Version 1.9.0
19+
djangosaml2 will detect if django-csp is installed and update the Content
20+
Security Policy accordingly.

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ under the `Apache 2.0 <https://en.wikipedia.org/wiki/Apache_License>`_.
4141
:caption: FAQ
4242

4343
contents/faq.md
44+
45+
.. toctree::
46+
:maxdepth: 2
47+
:caption: Security considerations
48+
49+
contents/security.md

0 commit comments

Comments
 (0)