"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/oauth1/core.py" between
keystone-15.0.0.tar.gz and keystone-15.0.1.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 "Stein" series (maintained release).

core.py  (keystone-15.0.0):core.py  (keystone-15.0.1)
skipping to change at line 114 skipping to change at line 114
"""Default pivot point for the OAuth1 backend. """Default pivot point for the OAuth1 backend.
See :mod:`keystone.common.manager.Manager` for more details on how this See :mod:`keystone.common.manager.Manager` for more details on how this
dynamically calls the backend. dynamically calls the backend.
""" """
driver_namespace = 'keystone.oauth1' driver_namespace = 'keystone.oauth1'
_provides_api = 'oauth_api' _provides_api = 'oauth_api'
_ACCESS_TOKEN = "OS-OAUTH1:access_token" _ACCESS_TOKEN = "OS-OAUTH1:access_token" # nosec
_REQUEST_TOKEN = "OS-OAUTH1:request_token" _REQUEST_TOKEN = "OS-OAUTH1:request_token" # nosec
_CONSUMER = "OS-OAUTH1:consumer" _CONSUMER = "OS-OAUTH1:consumer"
def __init__(self): def __init__(self):
super(Manager, self).__init__(CONF.oauth1.driver) super(Manager, self).__init__(CONF.oauth1.driver)
def create_consumer(self, consumer_ref, initiator=None): def create_consumer(self, consumer_ref, initiator=None):
consumer_ref = consumer_ref.copy() consumer_ref = consumer_ref.copy()
consumer_ref['secret'] = uuid.uuid4().hex consumer_ref['secret'] = uuid.uuid4().hex
ret = self.driver.create_consumer(consumer_ref) ret = self.driver.create_consumer(consumer_ref)
notifications.Audit.created(self._CONSUMER, ret['id'], initiator) notifications.Audit.created(self._CONSUMER, ret['id'], initiator)
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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