How to add users with username using mozilla-django-oidc to auth_user table upon SSO login?
I'm using mozilla-django-oidc
for SSO login with one of my django application. When each user logs in to the application using SSO, then the user is added to the auth_user
table of postgres database(if the user is not already saved).
The username column of the auth_user table is filled with the hash value of the email id. How can we save the actual value of the email id in the auth_user table instead of the hash value?
A direction to achieve this is mentioned here in the official documentation page.