Skip to content

Commit 74a80f5

Browse files
authored
Merge pull request #183 from mhindery/user-fetching-customization
Backend restructuring for easier subclassing
2 parents 312a065 + 221cda6 commit 74a80f5

File tree

3 files changed

+399
-246
lines changed

3 files changed

+399
-246
lines changed

README.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,9 @@ A typical configuration would look like this::
8181
'djangosaml2.backends.Saml2Backend',
8282
)
8383

84-
.. note::
85-
86-
Before djangosaml2 0.5.0 this authentication backend was
87-
automatically added by djangosaml2. This turned out to be
88-
a bad idea since some applications want to use their own
89-
custom policies for authorization and the authentication
90-
backend is a good place to define that. Starting from
91-
djangosaml2 0.5.0 it is now possible to define such
92-
backends.
84+
It is possible to subclass the provided Saml2Backend and customize the behaviour
85+
by overriding some methods. This way you can perform your custom cleaning or authorization
86+
policy, and modify the way users are looked up and created.
9387

9488
Finally we have to tell Django what the new login url we want to use is::
9589

0 commit comments

Comments
 (0)