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)  

revoke.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 driver = cfg.StrOpt(
19  'driver',
20  default='sql',
21  help=utils.fmt("""
22 Entry point for the token revocation backend driver in the `keystone.revoke`
23 namespace. Keystone only provides a `sql` driver, so there is no reason to set
24 this option unless you are providing a custom entry point.
25 """))
26 
27 expiration_buffer = cfg.IntOpt(
28  'expiration_buffer',
29  default=1800,
30  min=0,
31  help=utils.fmt("""
32 The number of seconds after a token has expired before a corresponding
33 revocation event may be purged from the backend.
34 """))
35 
36 caching = cfg.BoolOpt(
37  'caching',
38  default=True,
39  help=utils.fmt("""
40 Toggle for revocation event caching. This has no effect unless global caching
41 is enabled.
42 """))
43 
44 cache_time = cfg.IntOpt(
45  'cache_time',
46  default=3600,
47  deprecated_opts=[
48  cfg.DeprecatedOpt('revocation_cache_time', group='token')],
49  help=utils.fmt("""
50 Time to cache the revocation list and the revocation events (in seconds). This
51 has no effect unless global and `[revoke] caching` are both enabled.
52 """))
53 
54 
55 GROUP_NAME = __name__.split('.')[-1]
56 ALL_OPTS = [
57  driver,
58  expiration_buffer,
59  caching,
60  cache_time,
61 ]
62 
63 
64 def register_opts(conf):
65  conf.register_opts(ALL_OPTS, group=GROUP_NAME)
66 
67 
68 def list_opts():
69  return {GROUP_NAME: ALL_OPTS}
keystone.conf.revoke.list_opts
def list_opts()
Definition: revoke.py:68
keystone.conf.revoke.register_opts
def register_opts(conf)
Definition: revoke.py:64
keystone.conf
Definition: __init__.py:1