I have a problem I am trying to solve as smooth as possible, and also keep it as safe and flexible as possible!
I have a web app where I have 2 kinds of users; Back end users (trusted users; Admins!), and Customers (Front end users; not trusted in the same way)! They do work on some of the same data in the database, but the Customers can only do a subset of what the Back end users can do (like Salesforce users and customers "Self Service Portal")!
I also want to have 2 separate tables in the database for the back end users and the customers (tables are named User and Customer, and they both have a username and password row)...
Should I implement this with 2 different authentification methods, or should I use one authentification method and use roles instead (Then I would skip having 2 tables i the database with username and password, and let all use the User table)?