From 120abb0b656d16ac47fab2c95591390ff58fa52c Mon Sep 17 00:00:00 2001 From: Bojan Mihelac Date: Thu, 26 Jan 2023 11:28:14 +0100 Subject: [PATCH] Allow custom users models in client --- simple_sso/sso_client/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simple_sso/sso_client/client.py b/simple_sso/sso_client/client.py index f9f40a0..48dc84a 100644 --- a/simple_sso/sso_client/client.py +++ b/simple_sso/sso_client/client.py @@ -4,14 +4,17 @@ from django.urls import re_path from django.contrib.auth import login from django.contrib.auth.backends import ModelBackend -from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.urls import NoReverseMatch, reverse +from django.contrib.auth import get_user_model from django.views.generic import View from itsdangerous import URLSafeTimedSerializer from webservices.sync import SyncConsumer +User = get_user_model() + + class LoginView(View): client = None