Commit fa7650ae authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Add ASTAKOS_URL setting to PITHOS

Common 'api_method' decorator, needs the ASTAKOS_URL setting to
authenticate with Astakos. Create this setting for Pithos based
on PITHOS_AUTHENTICATION_URL.
parent d4327891
......@@ -4,6 +4,7 @@ from django.conf import settings
AUTHENTICATION_URL = getattr(settings, 'PITHOS_AUTHENTICATION_URL',
'https://accounts.example.synnefo.org/im/authenticate/')
AUTHENTICATION_USERS = getattr(settings, 'PITHOS_AUTHENTICATION_USERS', {})
ASTAKOS_URL = AUTHENTICATION_URL.replace("im/authenticate/", "")
COOKIE_NAME = getattr(settings, 'PITHOS_ASTAKOS_COOKIE_NAME', '_pithos2_a')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment