Django Legacy Database Authentication

Asked

Viewed 697 times

0

I am developing a project with a legacy database (Firebird), and I was able to configure Settings.py and it is working with the database.

When creating a login using Forms, I am not able to create an authentication with the database, because I am not using the standard user table of Django, and I am trying to validate with an existing table of the legacy system.

Could someone tell me how it would be done to create a login using an existing table of the legacy system? And mostly the views.py part to authenticate.

1 answer

2


You need to create a custom backend Authentication, see https://docs.djangoproject.com/en/dev/topics/auth/customizing/

You can copy and paste the Django template, and specify in your template the table name and each column

Actually it might not be that simple, I don’t know how passwords are stored in legacy system, in fact you don’t even need to create a table, you can create your own authentication logic, such as authenticate on a remote system like AD/LDAP

Browser other questions tagged

You are not signed in. Login or sign up in order to post.