Commit ae9fef2
authored
Expand error message
For several reasons I just triggered the following case:
SAML_USE_NAME_ID_AS_USERNAME = True
SAML_DJANGO_USER_MAIN_ATTRIBUTE = 'email'
I've been trying out different IdPs, which needed name as id and those which didn't.
Due to hard coding (sigh) djangosaml2idp returned a username instead of the email address I was configured for (not its fault), but then the logs report that a user that does exist can't be found since the search is looking for email addresses not usernames.
I hope this change helps clarify the cause of the problem.1 parent b66f8eb commit ae9fef2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments