Merge "Improve docs around configuring Castellan"

This commit is contained in:
Jenkins 2017-07-20 21:34:59 +00:00 committed by Gerrit Code Review
commit 1929ef87bb
1 changed files with 3 additions and 2 deletions

View File

@ -64,8 +64,9 @@ generate the appropriate context.
from castellan.common import utils from castellan.common import utils
CONF = <your_configuration> CONF = cfg.CONF
context = utils.credential_factory(conf=CONF, context=None) CONF(default_config_files=['~/castellan.conf'])
context = utils.credential_factory(conf=CONF)
Now you can go ahead and pass the context and use it for authentication. Now you can go ahead and pass the context and use it for authentication.