From 143decb1ef0fba91b2bfb1130f938505d3fbf223 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 25 Feb 2021 15:26:33 +0100 Subject: [PATCH] auth_saml: user default user's queryset (#51454) --- src/authentic2_auth_saml/adapters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/authentic2_auth_saml/adapters.py b/src/authentic2_auth_saml/adapters.py index 63afffc3f..95573a83e 100644 --- a/src/authentic2_auth_saml/adapters.py +++ b/src/authentic2_auth_saml/adapters.py @@ -28,6 +28,7 @@ from mellon.adapters import DefaultAdapter, UserCreationError from mellon.utils import get_setting from authentic2 import utils +from authentic2.backends import get_user_queryset from authentic2.utils.evaluate import evaluate_condition from authentic2.a2_rbac.models import Role, OrganizationalUnit as OU from authentic2.a2_rbac.utils import get_default_ou @@ -276,3 +277,6 @@ class AuthenticAdapter(DefaultAdapter): def auth_login(self, request, user): utils.login(request, user, 'saml') + + def get_users_queryset(self, idp, saml_attributes): + return get_user_queryset()