Skip to content

Commit

Permalink
Make sure we parse delay_auth_decision as boolean.
Browse files Browse the repository at this point in the history
- Fixes bug 995222.
- Documentation had already a false which is correct, updating the bug.

Change-Id: I08625d8fa07c05b25c851c1df327cbdf660bd614
  • Loading branch information
chmouel committed May 15, 2012
1 parent 3c9c38a commit bc803a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keystone/middleware/auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def __init__(self, app, conf):

# 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')
Expand Down

0 comments on commit bc803a4

Please sign in to comment.