"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/auth/plugins/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 collections import collections
import six
from keystone.common import provider_api from keystone.common import provider_api
from keystone import exception from keystone import exception
AuthHandlerResponse = collections.namedtuple( AuthHandlerResponse = collections.namedtuple(
'AuthHandlerResponse', 'status, response_body, response_data') 'AuthHandlerResponse', 'status, response_body, response_data')
@six.add_metaclass(abc.ABCMeta) class AuthMethodHandler(provider_api.ProviderAPIMixin, object,
class AuthMethodHandler(provider_api.ProviderAPIMixin, object): metaclass=abc.ABCMeta):
"""Abstract base class for an authentication plugin.""" """Abstract base class for an authentication plugin."""
def __init__(self): def __init__(self):
pass pass
@abc.abstractmethod @abc.abstractmethod
def authenticate(self, auth_payload): def authenticate(self, auth_payload):
"""Authenticate user and return an authentication context. """Authenticate user and return an authentication context.
:param auth_payload: the payload content of the authentication request :param auth_payload: the payload content of the authentication request
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

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