"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/auth/plugins/external.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).

external.py  (keystone-16.0.1):external.py  (keystone-17.0.0)
skipping to change at line 20 skipping to change at line 20
# 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.
"""Keystone External Authentication Plugins.""" """Keystone External Authentication Plugins."""
import abc import abc
import flask import flask
import six
from keystone.auth.plugins import base from keystone.auth.plugins import base
from keystone.common import provider_api from keystone.common import provider_api
import keystone.conf import keystone.conf
from keystone import exception from keystone import exception
from keystone.i18n import _ from keystone.i18n import _
CONF = keystone.conf.CONF CONF = keystone.conf.CONF
PROVIDERS = provider_api.ProviderAPIs PROVIDERS = provider_api.ProviderAPIs
@six.add_metaclass(abc.ABCMeta) class Base(base.AuthMethodHandler, metaclass=abc.ABCMeta):
class Base(base.AuthMethodHandler):
def authenticate(self, auth_payload): def authenticate(self, auth_payload):
"""Use REMOTE_USER to look up the user in the identity backend. """Use REMOTE_USER to look up the user in the identity backend.
The user_id from the actual user from the REMOTE_USER env variable is The user_id from the actual user from the REMOTE_USER env variable is
placed in the response_data. placed in the response_data.
""" """
response_data = {} response_data = {}
if not flask.request.remote_user: if not flask.request.remote_user:
msg = _('No authenticated user') msg = _('No authenticated user')
raise exception.Unauthorized(msg) raise exception.Unauthorized(msg)
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

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