Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login/logout functionality #16

Open
grundic opened this issue Dec 21, 2012 · 3 comments
Open

Login/logout functionality #16

grundic opened this issue Dec 21, 2012 · 3 comments

Comments

@grundic
Copy link
Contributor

grundic commented Dec 21, 2012

In perspective, it would be great to increase web functionality.
Taking this into consideration, we need to add standart login/logout for administrators.
http://flask.pocoo.org/docs/tutorial/views/#login-and-logout

@miohtama
Copy link
Member

This is MUST when the admin interface starts growing. Currently it is minimal, so there is no need to have anything more complex.

But as soon as we have 3 different admin views, this is something needed.

A simple cookie based authentication should be enough with a fixed credentials in settings.py? I think bot "admin user" management is too much in this point?

@grundic
Copy link
Contributor Author

grundic commented Dec 21, 2012

Shure, I don't want to support LDAP authentification for that :)
Actualy, we got SHARED_SECRET in settings.py. We can implement some decorator for marking views as administrative. And check some session key if user is 'logged in'. Not a rocket science :)

@grundic
Copy link
Contributor Author

grundic commented Dec 21, 2012

There is working example in Flask documentation: http://flask.pocoo.org/docs/patterns/viewdecorators/#login-required-decorator
Or we can use ready to use module http://packages.python.org/Flask-Login/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants