Package list python-castellan / 1929ef8
Merge "Improve docs around configuring Castellan" Jenkins authored 4 years ago Gerrit Code Review committed 4 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6363
6464 from castellan.common import utils
6565
66 CONF = <your_configuration>
67 context = utils.credential_factory(conf=CONF, context=None)
66 CONF = cfg.CONF
67 CONF(default_config_files=['~/castellan.conf'])
68 context = utils.credential_factory(conf=CONF)
6869
6970 Now you can go ahead and pass the context and use it for authentication.
7071