diff options
| author | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-05-14 11:33:54 +0000 |
|---|---|---|
| committer | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-05-15 10:59:09 +0200 |
| commit | bc803a4cede7ed2f39f4dc5c74977eedf46eb205 (patch) | |
| tree | cf3616a819ef1e17801662750590b340a1b04e5b | |
| parent | 3c9c38a8e08dd0300a04edb843a0b3e49486e86f (diff) | |
| download | keystone-bc803a4cede7ed2f39f4dc5c74977eedf46eb205.tar.gz keystone-bc803a4cede7ed2f39f4dc5c74977eedf46eb205.tar.xz keystone-bc803a4cede7ed2f39f4dc5c74977eedf46eb205.zip | |
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
| -rw-r--r-- | keystone/middleware/auth_token.py | 3 |
1 files changed, 2 insertions, 1 deletions
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') |
