Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | app: Initialize the backends last | Alexander Sulfrian | 2016-02-15 | 1 | -3/+3 | |
| | | | | | The backends need some data (f.e. app.all_services) also initalized in create_app(), so they need to be initialized later. | |||||
* | Rename app to application | Alexander Sulfrian | 2016-02-15 | 1 | -1/+1 | |
| | | | | | The app in the wsgi file should be called application (at least for the --wsgi-file option of uwsgi). | |||||
* | forms: Fix typo | Alexander Sulfrian | 2016-02-15 | 1 | -1/+1 | |
| | ||||||
* | Code style | Alexander Sulfrian | 2016-02-02 | 7 | -53/+48 | |
| | ||||||
* | forms: No need to supply request.form to the Forms | Alexander Sulfrian | 2016-02-02 | 2 | -7/+8 | |
| | | | | The wtforms classes get the request data by default. | |||||
* | manage.py: Replace contrib/create_accounts.py | Alexander Sulfrian | 2016-02-02 | 2 | -83/+42 | |
| | | | | Replace the contrib script with a command in the manage.py. | |||||
* | utils/console: Add helper class to handle forms | Alexander Sulfrian | 2016-02-02 | 1 | -0/+39 | |
| | | | | The wtforms classes need some helper to work on the command line. | |||||
* | utils/console: Allow empty output with TablePrinter | Alexander Sulfrian | 2016-02-02 | 1 | -1/+2 | |
| | ||||||
* | Allow to manually load a config file | Alexander Sulfrian | 2016-02-02 | 2 | -2/+5 | |
| | ||||||
* | Fix relative file paths in the config | Alexander Sulfrian | 2016-02-02 | 1 | -1/+18 | |
| | | | | | Relative file paths in the config should be relative to the directory containing the config file itself. | |||||
* | Code style | Alexander Sulfrian | 2016-02-02 | 1 | -4/+3 | |
| | ||||||
* | templates/mail: Get all parts from the template | Alexander Sulfrian | 2016-02-02 | 13 | -66/+113 | |
| | | | | | | | Also render sender and subject with the mail template, so the mails can be created with only a template name, a recipient and the template args. The required confirmation links are also generated in the templates. | |||||
* | utils: Drop custom url_for | Alexander Sulfrian | 2016-02-02 | 2 | -15/+4 | |
| | | | | Since flask-0.9 we can use config.PREFERRED_URL_SCHEME. | |||||
* | forms: Move regexp from utils | Alexander Sulfrian | 2016-02-02 | 2 | -5/+6 | |
| | | | | | The username and username_exclude regexp are only used in the forms, so we move the definition there. | |||||
* | forms: Remove unused variable | Alexander Sulfrian | 2016-02-02 | 1 | -5/+0 | |
| | ||||||
* | manage.py: Fix url_for for console commands | Alexander Sulfrian | 2016-02-02 | 2 | -2/+20 | |
| | ||||||
* | Use factory pattern to create app | Alexander Sulfrian | 2016-02-02 | 3 | -22/+29 | |
| | ||||||
* | manage.py: Add ListUsers command | Alexander Sulfrian | 2016-02-02 | 1 | -1/+29 | |
| | ||||||
* | utils/login: Add create_login_manager | Alexander Sulfrian | 2016-02-02 | 2 | -15/+21 | |
| | ||||||
* | manage.py: Remove reference to app | Alexander Sulfrian | 2016-02-02 | 1 | -7/+5 | |
| | ||||||
* | utils/sessions: Automatic permanent sessions | Alexander Sulfrian | 2016-02-02 | 2 | -15/+15 | |
| | ||||||
* | login: Customize login_message | Alexander Sulfrian | 2016-02-02 | 1 | -0/+1 | |
| | ||||||
* | backend/user/ldap: New LdapBackend | Alexander Sulfrian | 2016-02-02 | 2 | -156/+120 | |
| | | | | | | | | | | | | | | Change the schema used in the LDAP server. The service passwords are now associated by the hierarchy: dn: uid=test,ou=users,... dn: cn=service1,uid=test,ou=users,... dn: cn=service2,uid=test,ou=users,... ... This is the new structure used with the new Slapi plugin. Additional to that, the new backend uses the python-ldap3 module, because python-ldap has no python3 compatibility. | |||||
* | Account: Support direct setting of attributes | Alexander Sulfrian | 2016-02-02 | 3 | -3/+11 | |
| | | | | | | | | | | | | | | | Direct access to additional attributes was possible before, but setting the same value, created a new local property: >>> acc = Account(...) >>> acc.mail == acc.attributes['mail'] True >>> acc.mail = "foobar" >>> acc.mail == acc.attributes['mail'] False Not also assignments are possible and all assignments to unknown properties will create new attributes. | |||||
* | backend/user: Delete requires an Account now | Alexander Sulfrian | 2016-02-02 | 3 | -4/+3 | |
| | | | | | | delete does not support deletion by uid anymore. It requires an Account instance and get the password from the object. So we drop the additional password argument. | |||||
* | manage: Add list-services command | Alexander Sulfrian | 2016-02-02 | 2 | -1/+78 | |
| | ||||||
* | Use better defaults in settings | Alexander Sulfrian | 2016-02-02 | 1 | -2/+2 | |
| | ||||||
* | Code style | Alexander Sulfrian | 2016-02-02 | 1 | -3/+3 | |
| | ||||||
* | Get services from config | Alexander Sulfrian | 2016-02-02 | 4 | -26/+31 | |
| | ||||||
* | Create new login blueprint | Alexander Sulfrian | 2016-02-02 | 7 | -45/+67 | |
| | | | | The login and logout view are now in the login blueprint. | |||||
* | Redirect to login page | Alexander Sulfrian | 2016-02-02 | 3 | -5/+2 | |
| | ||||||
* | Rename views: settings->index, index->login | Alexander Sulfrian | 2016-02-02 | 5 | -97/+97 | |
| | ||||||
* | Fix comment | Alexander Sulfrian | 2016-02-02 | 1 | -3/+2 | |
| | ||||||
* | Fix sorting of imports | Alexander Sulfrian | 2016-02-02 | 1 | -1/+1 | |
| | ||||||
* | Update account password on change in dummy backend | Alexander Sulfrian | 2016-02-02 | 1 | -5/+5 | |
| | ||||||
* | Use Flask-Login for login handling | Alexander Sulfrian | 2016-02-02 | 9 | -104/+102 | |
| | ||||||
* | Simplify configuration loading | Alexander Sulfrian | 2016-02-02 | 1 | -3/+1 | |
| | ||||||
* | Use URLSafeTimedSerializer for confirmation token | Alexander Sulfrian | 2016-02-02 | 3 | -90/+34 | |
| | ||||||
* | Create models.py with Account and Service | Alexander Sulfrian | 2016-02-02 | 4 | -76/+76 | |
| | ||||||
* | Use consistent exceptions for all user backends | Alexander Sulfrian | 2016-02-02 | 5 | -11/+25 | |
| | | | | | | Now all backends raise custom exception types and does not forward the internal exception types. So there is no need to import the ldap module in other modules. | |||||
* | Encrypt the session data by default | Alexander Sulfrian | 2016-02-02 | 7 | -34/+71 | |
| | | | | | Before we just encrypted the password, now we encrypt the whole session information by default. | |||||
* | Create utils package | Alexander Sulfrian | 2016-02-02 | 1 | -0/+0 | |
| | ||||||
* | Bump flask version | Alexander Sulfrian | 2016-02-02 | 1 | -1/+1 | |
| | | | | Flask-0.10 has better support for signed sessions based on itsdangerous. | |||||
* | Drop before first request | Alexander Sulfrian | 2016-02-02 | 1 | -7/+5 | |
| | | | | @app.before_first_request is the same as duing it runing app creation | |||||
* | Remove context_processor with single use | Alexander Sulfrian | 2016-02-02 | 2 | -7/+3 | |
| | | | | | If we need the variable only in a single view, we can simply supply this value for this single view. | |||||
* | Remove blueprint name for "blueprint-local" urls | Alexander Sulfrian | 2016-02-02 | 2 | -5/+5 | |
| | ||||||
* | Move general views into blueprint | Alexander Sulfrian | 2016-02-02 | 13 | -268/+269 | |
| | | | | The use of a default blueprint allows more independence of the app object. | |||||
* | Do not disbale csrf | Alexander Sulfrian | 2016-01-25 | 1 | -5/+5 | |
| | ||||||
* | Use validate_on_submit helper | Alexander Sulfrian | 2016-01-25 | 1 | -6/+6 | |
| | | | | | There is no need to validate the request.method by hand, the validate_on_submit helper does that. | |||||
* | Remove unused import | Alexander Sulfrian | 2016-01-25 | 1 | -1/+0 | |
| |