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)  

oauth1.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 OAuth backend driver in the `keystone.oauth1` namespace.
23 Typically, there is no reason to set this option unless you are providing a
24 custom entry point.
25 """))
26 
27 request_token_duration = cfg.IntOpt(
28  'request_token_duration',
29  min=0,
30  default=28800,
31  help=utils.fmt("""
32 Number of seconds for the OAuth Request Token to remain valid after being
33 created. This is the amount of time the user has to authorize the token.
34 Setting this option to zero means that request tokens will last forever.
35 """))
36 
37 access_token_duration = cfg.IntOpt(
38  'access_token_duration',
39  min=0,
40  default=86400,
41  help=utils.fmt("""
42 Number of seconds for the OAuth Access Token to remain valid after being
43 created. This is the amount of time the consumer has to interact with the
44 service provider (which is typically keystone). Setting this option to zero
45 means that access tokens will last forever.
46 """))
47 
48 
49 GROUP_NAME = __name__.split('.')[-1]
50 ALL_OPTS = [
51  driver,
52  request_token_duration,
53  access_token_duration,
54 ]
55 
56 
57 def register_opts(conf):
58  conf.register_opts(ALL_OPTS, group=GROUP_NAME)
59 
60 
61 def list_opts():
62  return {GROUP_NAME: ALL_OPTS}
keystone.conf.oauth1.list_opts
def list_opts()
Definition: oauth1.py:61
keystone.conf
Definition: __init__.py:1
keystone.conf.oauth1.register_opts
def register_opts(conf)
Definition: oauth1.py:57