Skip to content

Commit

Permalink
fix the default values for token and password auth
Browse files Browse the repository at this point in the history
Change-Id: Ie0cd80ce1dcf5186367896e1a84a441dc2e2c72d
Fixes: Bug #1213216
  • Loading branch information
gongysh committed Aug 20, 2013
1 parent 0b2a160 commit c54170f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keystone/common/config.py
Expand Up @@ -223,9 +223,9 @@
'auth': [
cfg.ListOpt('methods', default=_DEFAULT_AUTH_METHODS),
cfg.StrOpt('password',
default='keystone.auth.plugins.token.Token'),
cfg.StrOpt('token',
default='keystone.auth.plugins.password.Password'),
cfg.StrOpt('token',
default='keystone.auth.plugins.token.Token'),
#deals with REMOTE_USER authentication
cfg.StrOpt('external',
default='keystone.auth.plugins.external.ExternalDefault')],
Expand Down
6 changes: 6 additions & 0 deletions keystone/tests/test_config.py
Expand Up @@ -17,3 +17,9 @@ def test_paste_config(self):
self.opt_in_group('paste_deploy', config_file='')
self.assertEqual(config.find_paste_config(),
test.etcdir('keystone.conf.sample'))

def test_config_default(self):
self.assertEqual('keystone.auth.plugins.password.Password',
CONF.auth.password)
self.assertEqual('keystone.auth.plugins.token.Token',
CONF.auth.token)

0 comments on commit c54170f

Please sign in to comment.