Closed derchrisuk closed 4 years ago
Do you use a custom User? Django message is quite eloquent "ValueError: Cannot force an update in save() with no primary key." This would be related to Django model and not to djangosaml2's ACS.
I'm going to clear all the old issues, if you still have troubles please open a new thread with renewed information, I'm sure that time passed and you got it fixed
I have an App, which is using its own User model. After adding all required settings to get SAML auth working, I get the following error:
This User model is using email as username field, which I already send as Name_ID
I have set debug log on to try to understand where it is failing exactly, but could not find out. What I discovered is that it only happens when trying to create a new user. When I register locally in the App with same username = email, and try to do the SAML auth again, it is finding the user, and is also updating the fields as per attribute mapping: