"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/oauth1/backends/base.py" between
keystone-16.0.1.tar.gz and keystone-17.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 "Ussuri" series (latest release).

base.py  (keystone-16.0.1):base.py  (keystone-17.0.0)
skipping to change at line 18 skipping to change at line 18
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import abc import abc
import string import string
import six
from keystone import exception from keystone import exception
# The characters used to generate verifiers are limited to alphanumerical # The characters used to generate verifiers are limited to alphanumerical
# values for ease of manual entry. Commonly confused characters are omitted. # values for ease of manual entry. Commonly confused characters are omitted.
VERIFIER_CHARS = string.ascii_letters + string.digits VERIFIER_CHARS = string.ascii_letters + string.digits
CONFUSED_CHARS = 'jiIl1oO0' CONFUSED_CHARS = 'jiIl1oO0'
VERIFIER_CHARS = ''.join(c for c in VERIFIER_CHARS if c not in CONFUSED_CHARS) VERIFIER_CHARS = ''.join(c for c in VERIFIER_CHARS if c not in CONFUSED_CHARS)
def filter_token(access_token_ref): def filter_token(access_token_ref):
"""Filter out private items in an access token dict. """Filter out private items in an access token dict.
skipping to change at line 54 skipping to change at line 52
'secret' is never returned. 'secret' is never returned.
:returns: consumer_ref :returns: consumer_ref
""" """
if consumer_ref: if consumer_ref:
consumer_ref = consumer_ref.copy() consumer_ref = consumer_ref.copy()
consumer_ref.pop('secret', None) consumer_ref.pop('secret', None)
return consumer_ref return consumer_ref
@six.add_metaclass(abc.ABCMeta) class Oauth1DriverBase(object, metaclass=abc.ABCMeta):
class Oauth1DriverBase(object):
"""Interface description for an OAuth1 driver.""" """Interface description for an OAuth1 driver."""
@abc.abstractmethod @abc.abstractmethod
def create_consumer(self, consumer_ref): def create_consumer(self, consumer_ref):
"""Create consumer. """Create consumer.
:param consumer_ref: consumer ref with consumer name :param consumer_ref: consumer ref with consumer name
:type consumer_ref: dict :type consumer_ref: dict
:returns: consumer_ref :returns: consumer_ref
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

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