Merge "Make auth_url lookup dynamic"

This commit is contained in:
Jenkins 2016-03-08 05:34:49 +00:00 committed by Gerrit Code Review
commit 0e16abc96e
1 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,13 @@ class AuthUrlFilter(wsgi.Middleware):
def __init__(self, app, conf):
super(AuthUrlFilter, self).__init__(app)
self.conf = conf
self.auth_url = self._get_auth_url()
self._auth_url = None
@property
def auth_url(self):
if not self._auth_url:
self._auth_url = self._get_auth_url()
return self._auth_url
def _get_auth_url(self):
if 'auth_uri' in self.conf: