I am developing a RESTful web application that will provide an authentication system for several other applications. Other applications will request this application via HTTP and return XML describing authenticated users.
An authentication application should track which users are allowed to do what on which applications.
I am developing a database schema. Below is my original design. (Suppose each table has a column id.)
applications
name
users
username
password
email
roles
name
application_id
roles_users
role_id
user_id
, - " ". " " auth " xxx yyy". ( ActiveResource) User , roles Role "ADMIN", Application "" Inventory".
, , applications , , "equipment_inventory_admin", "equipment_inventory_readonly", "job_tracker_admin" ..
, ? , , , , .