From bc803a4cede7ed2f39f4dc5c74977eedf46eb205 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 14 May 2012 11:33:54 +0000 Subject: Make sure we parse delay_auth_decision as boolean. - Fixes bug 995222. - Documentation had already a false which is correct, updating the bug. Change-Id: I08625d8fa07c05b25c851c1df327cbdf660bd614 --- keystone/middleware/auth_token.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone/middleware/auth_token.py b/keystone/middleware/auth_token.py index 92c889d5..b7a793c2 100644 --- a/keystone/middleware/auth_token.py +++ b/keystone/middleware/auth_token.py @@ -120,7 +120,8 @@ class AuthProtocol(object): # delay_auth_decision means we still allow unauthenticated requests # through and we let the downstream service make the final decision - self.delay_auth_decision = int(conf.get('delay_auth_decision', 0)) + self.delay_auth_decision = (conf.get('delay_auth_decision', False) + in ('true', 't', '1', 'on', 'yes', 'y')) # where to find the auth service (we use this to validate tokens) self.auth_host = conf.get('auth_host') -- cgit