Authentication and Authorization
Posted: Sun Mar 04, 2012 5:34 pm
I have a need to authenticate and authorize users to an application.
Assume Application FOO.
Users Bob, Carol, Deke.
FOO will allow Bob, Carol, and Deke to login.
FOO will allow anyone to see stuff.
Bob can edit anyone's stuff.
Carol and Deke can write stuff, but only edit their own posts.
(I notice that I've just defined a blogging application. Blogs are the new Hello World, I guess.)
So what I need, I guess, is a way to authenticate a user, and then to authorize them to do 'stuff'.
"Write your own" is a perfectly valid response. But if someone else has done it already then I'd feel foolish re-inventing the wheel.
Also: tips, hints, or etc are welcome. And thanks in advance.
Assume Application FOO.
Users Bob, Carol, Deke.
FOO will allow Bob, Carol, and Deke to login.
FOO will allow anyone to see stuff.
Bob can edit anyone's stuff.
Carol and Deke can write stuff, but only edit their own posts.
(I notice that I've just defined a blogging application. Blogs are the new Hello World, I guess.)
So what I need, I guess, is a way to authenticate a user, and then to authorize them to do 'stuff'.
"Write your own" is a perfectly valid response. But if someone else has done it already then I'd feel foolish re-inventing the wheel.
Also: tips, hints, or etc are welcome. And thanks in advance.