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)  

authorization.py
Go to the documentation of this file.
1 # Copyright 2012 OpenStack Foundation
2 # Copyright 2010 United States Government as represented by the
3 # Administrator of the National Aeronautics and Space Administration.
4 # Copyright 2011 - 2012 Justin Santa Barbara
5 # All Rights Reserved.
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License"); you may
8 # not use this file except in compliance with the License. You may obtain
9 # a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 # License for the specific language governing permissions and limitations
17 # under the License.
18 
19 # A couple common constants for Auth data
20 
21 # Header used to transmit the auth token
22 AUTH_TOKEN_HEADER = 'X-Auth-Token' # nosec
23 
24 
25 # Header used to transmit the auth receipt
26 AUTH_RECEIPT_HEADER = 'Openstack-Auth-Receipt'
27 
28 
29 # Header used to transmit the subject token
30 SUBJECT_TOKEN_HEADER = 'X-Subject-Token' # nosec
31 
32 # Environment variable used to convey the Keystone auth context,
33 # the user credential used for policy enforcement.
34 AUTH_CONTEXT_ENV = 'KEYSTONE_AUTH_CONTEXT'
35 
36 # Header set by versions of keystonemiddleware that understand application
37 # credential access rules
38 ACCESS_RULES_HEADER = 'OpenStack-Identity-Access-Rules'