-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow complex lookups for User #326
Labels
Comments
I'd consider only to move this djangosaml2/djangosaml2/backends.py Line 271 in 8bd4bf8
in a method, like "get_user_query_args" and let developers inherits this and do their own |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was wondering if you would be open for a possibility to allow complex lookups for the user model.
My proposal would be to allow another setting (e.g.
CUSTOM_LOOKUP
which is passed toget_or_create_user
and would replaceuser_lookup_key
anduser_lookup_value
if set.My use case is that i have an ID field which isn't necessary defined and i want to provide a "fallback" field by using a query like
Q(my_id="uid") | Q(email)="mail"
.The text was updated successfully, but these errors were encountered: