simov / express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
1.17k stars 223 forks source link

Reusing user/session workflow #78

Open knownasilya opened 9 years ago

knownasilya commented 9 years ago

So one thing that's very important is to keep users in-sync across your app, so I'm wondering if express-admin exposes the users/sessions? Or can it use users/sessions that I provide?

I am very interested in helping to flesh this out.

Maybe something along the lines of mapping a table for users, and the attributes for that user.

{
  "users": {
    "table": "users",
    "attributes": {
      "id": "id",
      "username": "email",
      "hash": "hash",
      "salt": "salt"
    }
  }
}

And you could leave off the attributes that are the same.

simov commented 9 years ago

I can't tell you with certainty atm. Generally this is the session middleware used in the admin. As for creating a table, and things of that nature, these will be added as plugins somehow.