linux auth
Added by Jan Hrubeš over 12 years ago
Hi,
I am stunned by your amazing and feature rich auth module. But I have a feeling, it can be an overhead using it in may project. I am trying to do something like linux management over https using wt.
I would like to use the session a cookie management provided by auth module, but there will be no registrations, email notification, remember me for 2 months.
From this point I should probably make own simple AuthWidget (but I like the internal path management form wt's AuthWidget). The password service can be implemented using crypt. The user database should be passwd and shadow files directly (moreover I would like to use groups for setting up roles admin/read/...). But then I have to add some singleton/file for storing sessions ids connected with authenticated user.
My questions are:
- do you see some convenient way how implement offspring of AbstractUserDatabase using linux files?
- what is the minimum from AuthWidget recomended just for authentication (just username lineedit/ pass lineedit/ login button on the login page; user/role/logout button on the logged in page)?
- are there other catch ups i didn't mention?
thanks for advices,
Jan
Replies (1)
RE: linux auth - Added by Koen Deforche over 12 years ago
Hey,
It's an interesting thing to try (auth on linux auth), and I would hope that indeed you can implement the user database to use passwd files. I'm not sure what is the easiest way, if you need to parse the files yourself or you can use a library for it.
Anything specific to Wt ("token" storage) I would simply store in a sqlite3 database for example, which is nothing more than a file on your disk.
I would be interested in hearing how it works out ?
Regards,
koen