pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

Add basic Authentication as an extension module #16

Closed pythononwheels closed 7 years ago

pythononwheels commented 12 years ago

as a plugin in ext/auth but as an intermediate solution realized as a decorator.

so: @authenticate def action(self): example ...

will make an action executable only if a user is logged on.

Veeerrry simple but enough for Beta1.

A more sophisticated Authentication will follow in Beta2.

Role Based Authorisation might be left to someone else ....

pythononwheels commented 7 years ago

works now. Based on tornado auth. Basic only checks user/password. You can choose between sql or NoSql db.

Other options can be added as custom extensions.