keystone  18.0.0
About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (maintained release).
  Fossies Dox: keystone-18.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

trust.py
Go to the documentation of this file.
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12 
13 from oslo_config import cfg
14 
15 from keystone.conf import utils
16 
17 
18 allow_redelegation = cfg.BoolOpt(
19  'allow_redelegation',
20  default=False,
21  help=utils.fmt("""
22 Allows authorization to be redelegated from one user to another, effectively
23 chaining trusts together. When disabled, the `remaining_uses` attribute of a
24 trust is constrained to be zero.
25 """))
26 
27 max_redelegation_count = cfg.IntOpt(
28  'max_redelegation_count',
29  default=3,
30  help=utils.fmt("""
31 Maximum number of times that authorization can be redelegated from one user to
32 another in a chain of trusts. This number may be reduced further for a specific
33 trust.
34 """))
35 
36 driver = cfg.StrOpt(
37  'driver',
38  default='sql',
39  help=utils.fmt("""
40 Entry point for the trust backend driver in the `keystone.trust` namespace.
41 Keystone only provides a `sql` driver, so there is no reason to change this
42 unless you are providing a custom entry point.
43 """))
44 
45 
46 GROUP_NAME = __name__.split('.')[-1]
47 ALL_OPTS = [
48  allow_redelegation,
49  max_redelegation_count,
50  driver,
51 ]
52 
53 
54 def register_opts(conf):
55  conf.register_opts(ALL_OPTS, group=GROUP_NAME)
56 
57 
58 def list_opts():
59  return {GROUP_NAME: ALL_OPTS}
keystone.conf
Definition: __init__.py:1
keystone.conf.trust.register_opts
def register_opts(conf)
Definition: trust.py:54
keystone.conf.trust.list_opts
def list_opts()
Definition: trust.py:58