The best approach for a customer restricted area

53 views
Skip to first unread message

Miguel Pragier

unread,
Jan 22, 2016, 2:40:17 PM1/22/16
to Django users
Hi all.

I was demanded to create an online service/portal in Django, and this is my first project in Django.

Roughly, the portal should have two restricted areas:
- Our ( operators/providers ) restricted area, supposed to be created with "admin" generator.
- Our customer's restricted area, with ther own authentication system.

How should I create this "customer area"?
Admin?
Some plugin/add-on?
Coding from scratch?

Or am I looking to the wrong direction?

Thank you very much.


Miguel

James Schneider

unread,
Jan 24, 2016, 3:00:29 PM1/24/16
to django...@googlegroups.com

If the customer has a separate authentication system, then your strategy would be driven by whatever system they are using. There are various libraries that can help, such as django-ldap if they are using an LDAP server for authentication.

You'll need to write separate views that handle logins using the alternate form of authentication, or have a single login page that can use multiple authentication systems if you want everyone to log on through the same page. Both are entirely possible.

Access to pages and resources can be controlled by the built-in Django auth system in most cases, using permissions and groups.

-James

Reply all
Reply to author
Forward
0 new messages