Frédéric Péters
276e0e3cf7
agent: don't keep celery connections open ( #6531 )
2015-02-17 10:46:56 +01:00
Frédéric Péters
615b3130e2
agent: add is_superuser to authentic default attributes ( #6528 )
2015-02-17 00:10:21 +01:00
Frédéric Péters
d375bf70b2
agent: do not create 'role' attribute many times ( #6527 )
2015-02-17 00:10:21 +01:00
Thomas NOËL
88dd4a5867
multitenant: can redirect is no tenant ( #6505 )
2015-02-16 18:38:56 +01:00
Thomas NOËL
aa52d5d9f7
multitenant: no template_loader on public schema ( #6524 )
2015-02-16 18:11:33 +01:00
Thomas NOËL
25909dd619
Revert "multitenant: migrate_schemas->migrate_tenants ( #6521 )"
...
... because `migrate_schemas` is needed by `create_tenant` (via
django-tenant-schemas)
This reverts commit 2705a0c4b3
.
2015-02-16 17:10:39 +01:00
Jérôme Schneider
3a46928461
MANIFEST.in: include COPYING and README
2015-02-16 15:41:44 +01:00
Frédéric Péters
7e082ae4bf
add missing __init__.py files
2015-02-16 15:12:24 +01:00
Thomas NOËL
2705a0c4b3
multitenant: migrate_schemas->migrate_tenants ( #6521 )
2015-02-16 14:19:37 +01:00
Frédéric Péters
e5d7c46321
agent/authentic2: don't abort when it fails to get SP metadata ( #6513 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
c9f811d027
agent/authentic2: use specific app label to avoid conflicts ( #6514 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
a544733a23
agent/worker: use common code to call deployment agent ( #6512 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
d2c08711ad
general: do not expose users that do not have a password set ( #6511 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
0ed8da2295
agent: create authentic users as superusers ( #6509 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
3278d9d2aa
add a /login/local/ url in case of idp down ( #6478 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
09a081b7ce
authenticate against mellon when an idp is marked ( #6478 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
4cda5b2f8f
environment: add an attribute to mark authentic object as hobo idp ( #6478 )
2015-02-16 14:05:47 +01:00
Frédéric Péters
15fcd6cc08
add initial migrations
2015-02-16 14:05:47 +01:00
Frédéric Péters
447a5c0c65
general: advertise hobo itself as a service ( #6503 )
...
This is useful to get it automatically registered as a service provider, but
this requires a new settings (BASE_URL) as it cannot be determined
automatically in all circumstances (management commands for example).
2015-02-16 14:05:47 +01:00
Thomas NOËL
017fa6bcb6
amqp: limit tasks time to live ( #6507 )
2015-02-16 10:19:19 +01:00
Thomas NOËL
0e4b93e0db
hobo.agent is no longer a django app ( #6501 )
2015-02-13 22:47:29 +01:00
Frédéric Péters
987e824e5a
fixing up previous patch ( #6501 )
2015-02-13 18:45:22 +01:00
Thomas NOËL
3e5d9c44e4
separate server and agent Celery usage ( #6501 )
...
agent is not a Django application.
2015-02-13 18:16:11 +01:00
Frédéric Péters
1154dad076
agent: bootstrap authentic with hobo users ( #6495 )
2015-02-13 11:49:50 +01:00
Serghei Mihai
a41a3c39d5
middleware: add a middleware to set authentic SAML settings from tenant ( #6484 )
2015-02-13 11:49:50 +01:00
Frédéric Péters
84ce7245de
middleware: add a middleware to set template_vars from tenant ( #6474 )
2015-02-13 11:49:50 +01:00
Frédéric Péters
2e4132dbdd
middleware: add a middleware to set mellon settings from tenant ( #6472 )
2015-02-13 11:49:50 +01:00
Thomas NOËL
dddb63b713
multitenant: pass tenant_dir to load_file method ( #6493 )
...
FileBasedTenantSettingBaseMiddleware::load_file is called when a file is
new or updated, but it could need other files of the tenant. So we need
to know tenant_dir to load them.
2015-02-13 11:49:50 +01:00
Serghei Mihai
16c014f5b5
agent: move tenant directory layout knowledge into tenant model
2015-02-13 11:49:50 +01:00
Frédéric Péters
801b19280c
agent: finish by writing the hobo.json, so it gets the most recent timestamp
2015-02-13 11:49:50 +01:00
Frédéric Péters
2f519fd7ee
agent: use common deployment code for wcs ( #6486 )
2015-02-13 11:49:50 +01:00
Frédéric Péters
bf177b6ace
agent: don't hardcode openssl path
2015-02-13 11:49:50 +01:00
Serghei Mihai
32718e3555
agent: add authentic deployment agent ( #6476 )
2015-02-13 11:49:50 +01:00
Serghei Mihai
a42bf1e75d
agent: move sso configuration to its own method
...
The configuration code for SSO is common to all service providers but can be
skipped in the authentic agent, making it its own method makes this possible.
2015-02-13 11:49:50 +01:00
Frédéric Péters
77875ea2be
agent: add an attribute to current tenant for easier retrieval
...
The tenants are using domain names but the native hobo json file has base_url
(scheme + domaine name + port); an attribute is added to mark the current
tenant, to avoid having to run urlparse everytime.
2015-02-13 11:49:50 +01:00
Frédéric Péters
395eb63201
advertise metadata URL of Combo sites
2015-02-13 11:49:49 +01:00
Frédéric Péters
df1826a404
agent: remove obsolete runagent command
2015-02-13 11:49:49 +01:00
Frédéric Péters
a9c0e8e241
agent: add option to ignore timestamp
2015-02-13 11:49:49 +01:00
Frédéric Péters
835701138b
agent: add downloading of idp metadata
2015-02-13 11:49:49 +01:00
Frédéric Péters
7f07faee2a
agent: only read stdin if - is passed as filename
...
This makes it easier to use pdb to interactively debug the deployment code.
2015-02-13 11:49:49 +01:00
Frédéric Péters
ed2b9a88f0
agent: write down hobo.json in tenant directory
2015-02-13 11:49:49 +01:00
Frédéric Péters
a308049c34
agent: new hobo.agent.common, with hobo_deploy command ( #6471 )
2015-02-13 11:49:49 +01:00
Frédéric Péters
2f1a1ee5ed
worker: call new hobo_deploy command ( #6471 )
2015-02-13 11:49:49 +01:00
Frédéric Péters
f065136800
agent: remove DJANGO_SETTINGS_MODULE from environment
...
This is necessary so the management commands of the other projects don't find
themselves loading hobo own settings.py...
2015-02-13 11:49:49 +01:00
Frédéric Péters
136d74b189
move celery worker to its own submodule
...
This is required as we don't want the celery app to be started when using
another part of hobo.agent (ex: hobo.agent.common).
2015-02-13 11:49:49 +01:00
Serghei Mihai
fccf8590ea
setup.py: add dependencies ( #6499 )
2015-02-13 11:34:11 +01:00
Benjamin Dauvergne
db9d939e09
Add generic cache backend for multitenant applications
...
Path of the new backend is hobo.multitenant.cache.TenantCache
You can use it like this in your settings:
CACHES = {
'default': {
'BACKEND': 'hobo.multitenant.cache.TenantCache',
'REAL_BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
2015-02-12 18:58:14 +01:00
Frédéric Péters
4a371988d1
gitignore: ignore local_settings.py
2015-02-12 10:19:05 +01:00
Frédéric Péters
3f19986549
gitignore: ignore egg-info directory
2015-02-12 10:18:37 +01:00
Frédéric Péters
e3382c71b1
let unauthenticated users flow to the login page ( #6477 )
2015-02-12 09:52:43 +01:00