Show More
@@ -290,6 +290,9 b' instance_id =' | |||||
290 | ## egg:rhodecode-enterprise-ce#crowd |
|
290 | ## egg:rhodecode-enterprise-ce#crowd | |
291 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode |
|
291 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode | |
292 |
|
292 | |||
|
293 | ## Flag to control loading of legacy plugins in py:/path format | |||
|
294 | auth_plugin.import_legacy_plugins = true | |||
|
295 | ||||
293 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
296 | ## alternative return HTTP header for failed authentication. Default HTTP | |
294 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
297 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
295 | ## handling that causing a series of failed authentication calls. |
|
298 | ## handling that causing a series of failed authentication calls. |
@@ -265,6 +265,9 b' instance_id =' | |||||
265 | ## egg:rhodecode-enterprise-ce#crowd |
|
265 | ## egg:rhodecode-enterprise-ce#crowd | |
266 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode |
|
266 | #rhodecode.auth_plugin_fallback = egg:rhodecode-enterprise-ce#rhodecode | |
267 |
|
267 | |||
|
268 | ## Flag to control loading of legacy plugins in py:/path format | |||
|
269 | auth_plugin.import_legacy_plugins = true | |||
|
270 | ||||
268 | ## alternative return HTTP header for failed authentication. Default HTTP |
|
271 | ## alternative return HTTP header for failed authentication. Default HTTP | |
269 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with |
|
272 | ## response is 401 HTTPUnauthorized. Currently HG clients have troubles with | |
270 | ## handling that causing a series of failed authentication calls. |
|
273 | ## handling that causing a series of failed authentication calls. |
@@ -266,7 +266,6 b' def includeme(config):' | |||||
266 | config.include('rhodecode.integrations') |
|
266 | config.include('rhodecode.integrations') | |
267 |
|
267 | |||
268 | if load_all: |
|
268 | if load_all: | |
269 | from rhodecode.authentication import discover_legacy_plugins |
|
|||
270 | # load CE authentication plugins |
|
269 | # load CE authentication plugins | |
271 | config.include('rhodecode.authentication.plugins.auth_crowd') |
|
270 | config.include('rhodecode.authentication.plugins.auth_crowd') | |
272 | config.include('rhodecode.authentication.plugins.auth_headers') |
|
271 | config.include('rhodecode.authentication.plugins.auth_headers') | |
@@ -277,6 +276,8 b' def includeme(config):' | |||||
277 | config.include('rhodecode.authentication.plugins.auth_token') |
|
276 | config.include('rhodecode.authentication.plugins.auth_token') | |
278 |
|
277 | |||
279 | # Auto discover authentication plugins and include their configuration. |
|
278 | # Auto discover authentication plugins and include their configuration. | |
|
279 | if asbool(settings.get('auth_plugin.import_legacy_plugins', 'true')): | |||
|
280 | from rhodecode.authentication import discover_legacy_plugins | |||
280 | discover_legacy_plugins(config) |
|
281 | discover_legacy_plugins(config) | |
281 |
|
282 | |||
282 | # apps |
|
283 | # apps |
General Comments 0
You need to be logged in to leave comments.
Login now