Commit graph

13 commits

Author SHA1 Message Date
Marcin Kuzminski
708038952c db: always use Session() for compatibility, Using Session is actually the
scoped_session which is not the same as the one which we "call".

More here: http://docs.sqlalchemy.org/en/latest/orm/contextual.html#contextual-thread-local-sessions
2016-07-27 00:42:19 +02:00
Marcin Kuzminski
ab6750c9a7 auth-token: allow other authentication types to use auth-token.
Fixes #4070
2016-07-12 19:56:48 +02:00
Martin Bornhold
0641c0e2d0 authn: Generate the form default values manually.
When using colander.flatten(data) it adds colander.null for each
missing form field. But this is not correct. What we want here is
a dict wich contains only the keys/values from request.params that
match a form field.
2016-06-28 16:28:18 +02:00
Martin Bornhold
54f29c46ab authn: Only lookup settings from DB if they are really used.
When computing the form defaults only query the DB if we
need the value from DB.
2016-06-28 12:07:10 +02:00
Martin Bornhold
381973ba40 authn: Remove usage of colander.serialize to generate form defaults. 2016-06-28 11:56:27 +02:00
Johannes Bornhold
b5079c9ba9 authn: Fix priority of default values if some values are missing during POST
Normally this affects only the test suite but doesn't hurt to be correct :)
2016-06-20 17:27:04 +02:00
Martin Bornhold
3bd01810b3 permissions: Fix permissions for authentication plugin settings view. 2016-06-14 12:30:42 +02:00
Johannes Bornhold
18376347ca authn: Fix handling of form errors and default values. 2016-06-03 10:02:59 +02:00
Johannes Bornhold
4a184c7278 authn: Remove unused code
Unused due to the previoud refactoring.
2016-06-02 17:08:11 +02:00
Johannes Bornhold
269dfe46e1 authn: Refactored the auth-plugins-settings base view.
This allows plugins to easier extend the template context dict
without duplicate the code of the base views.
2016-06-02 17:07:38 +02:00
Johannes Bornhold
b3562f3708 authn: Add an INI option to set an authentication plugin fallback. #3953
If you set 'rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode'
in your INI file the rhodecode auth plugin is always appended to the list of plugins
that are used for authentication.
2016-05-27 10:36:30 +02:00
Johannes Bornhold
e3428604d0 i18n: Use new translation string factory.
- Use the translation factory create in rhodecode.translation
  instead of creating multiple instances in each module.
2016-05-27 12:15:09 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00