"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/server/flask/request_processing/middleware/auth_context.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

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 (latest release).

auth_context.py  (keystone-17.0.0):auth_context.py  (keystone-18.0.0)
skipping to change at line 365 skipping to change at line 365
# and the middleware_exceptions helper removed. # and the middleware_exceptions helper removed.
self.fill_context(request) self.fill_context(request)
def _keystone_specific_values(self, token, request_context): def _keystone_specific_values(self, token, request_context):
request_context.token_reference = ( request_context.token_reference = (
render_token.render_token_response_from_model(token) render_token.render_token_response_from_model(token)
) )
if token.domain_scoped: if token.domain_scoped:
# Domain scoped tokens should never have is_admin_project set # Domain scoped tokens should never have is_admin_project set
# Even if KSA defaults it otherwise. The two mechanisms are # Even if KSA defaults it otherwise. The two mechanisms are
# parallel; only ione or the other should be used for access. # parallel; only one or the other should be used for access.
request_context.is_admin_project = False request_context.is_admin_project = False
request_context.domain_id = token.domain_id request_context.domain_id = token.domain_id
request_context.domain_name = token.domain['name'] request_context.domain_name = token.domain['name']
if token.oauth_scoped: if token.oauth_scoped:
request_context.is_delegated_auth = True request_context.is_delegated_auth = True
request_context.oauth_consumer_id = ( request_context.oauth_consumer_id = (
token.access_token['consumer_id'] token.access_token['consumer_id']
) )
request_context.oauth_access_token_id = token.access_token_id request_context.oauth_access_token_id = token.access_token_id
if token.trust_scoped: if token.trust_scoped:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)