فهرست منبع

HUE-9065 [libopenid] Remove opendId lib

OpenId 1 and 2 are deprecated and replaced by OpenId Connect.
Hue has support for OpenId Connect.
Python 3 test runs fails with libopenid lib.
Romain 6 سال پیش
والد
کامیت
f6d6c20069
30فایلهای تغییر یافته به همراه0 افزوده شده و 1024 حذف شده
  1. 0 2
      desktop/Makefile
  2. 0 20
      desktop/conf.dist/hue.ini
  3. 0 20
      desktop/conf/pseudo-distributed.ini.tmpl
  4. 0 1
      desktop/core/requirements_py3.txt
  5. 0 8
      desktop/core/src/desktop/settings.py
  6. 0 3
      desktop/core/src/desktop/urls.py
  7. 0 36
      desktop/libs/libopenid/Makefile
  8. 0 2
      desktop/libs/libopenid/babel.cfg
  9. 0 1
      desktop/libs/libopenid/hueversion.py
  10. 0 31
      desktop/libs/libopenid/setup.py
  11. 0 18
      desktop/libs/libopenid/src/libopenid/__init__.py
  12. 0 92
      desktop/libs/libopenid/src/libopenid/backend.py
  13. 0 68
      desktop/libs/libopenid/src/libopenid/conf.py
  14. 0 14
      desktop/libs/libopenid/src/libopenid/forms.py
  15. 0 38
      desktop/libs/libopenid/src/libopenid/locale/de/LC_MESSAGES/django.po
  16. 0 39
      desktop/libs/libopenid/src/libopenid/locale/en/LC_MESSAGES/django.po
  17. 0 39
      desktop/libs/libopenid/src/libopenid/locale/en_US.pot
  18. 0 38
      desktop/libs/libopenid/src/libopenid/locale/es/LC_MESSAGES/django.po
  19. 0 38
      desktop/libs/libopenid/src/libopenid/locale/fr/LC_MESSAGES/django.po
  20. 0 38
      desktop/libs/libopenid/src/libopenid/locale/ja/LC_MESSAGES/django.po
  21. 0 38
      desktop/libs/libopenid/src/libopenid/locale/ko/LC_MESSAGES/django.po
  22. 0 39
      desktop/libs/libopenid/src/libopenid/locale/pt/LC_MESSAGES/django.po
  23. 0 39
      desktop/libs/libopenid/src/libopenid/locale/pt_BR/LC_MESSAGES/django.po
  24. 0 38
      desktop/libs/libopenid/src/libopenid/locale/zh_CN/LC_MESSAGES/django.po
  25. 0 28
      desktop/libs/libopenid/src/libopenid/metrics.py
  26. 0 42
      desktop/libs/libopenid/src/libopenid/openid_settings.py
  27. 0 170
      desktop/libs/libopenid/src/libopenid/templates/openid-login.html
  28. 0 24
      desktop/libs/libopenid/src/libopenid/urls.py
  29. 0 59
      desktop/libs/libopenid/src/libopenid/views.py
  30. 0 1
      ext/thirdparty/README.md

+ 0 - 2
desktop/Makefile

@@ -47,7 +47,6 @@ APPS := core \
 	libs/libanalyze \
 	libs/libanalyze \
 	libs/liboauth \
 	libs/liboauth \
 	libs/liboozie \
 	libs/liboozie \
-	libs/libopenid \
 	libs/librdbms \
 	libs/librdbms \
 	libs/libsaml \
 	libs/libsaml \
 	libs/libsentry \
 	libs/libsentry \
@@ -186,4 +185,3 @@ compile-locales: $(COMPILE_LOCALE_TARGETS)
 .recursive-compile-locales/%:
 .recursive-compile-locales/%:
 	@$(MAKE) -C $* compile-locale
 	@$(MAKE) -C $* compile-locale
 # END DEV ONLY >>>>
 # END DEV ONLY >>>>
-	

+ 0 - 20
desktop/conf.dist/hue.ini

@@ -335,7 +335,6 @@
     # - desktop.auth.backend.KnoxSpnegoDjangoBackend
     # - desktop.auth.backend.KnoxSpnegoDjangoBackend
     # - desktop.auth.backend.RemoteUserDjangoBackend
     # - desktop.auth.backend.RemoteUserDjangoBackend
     # - libsaml.backend.SAML2Backend
     # - libsaml.backend.SAML2Backend
-    # - libopenid.backend.OpenIDBackend
     # - liboauth.backend.OAuthBackend
     # - liboauth.backend.OAuthBackend
     # - desktop.auth.backend.OIDCBackend
     # - desktop.auth.backend.OIDCBackend
     #     (New oauth, support Twitter, Facebook, Google+ and Linkedin
     #     (New oauth, support Twitter, Facebook, Google+ and Linkedin
@@ -1899,25 +1898,6 @@
   ## logout_enabled=true
   ## logout_enabled=true
 
 
 
 
-###########################################################################
-# Settings to configure OpenID
-###########################################################################
-
-[libopenid]
-  # (Required) OpenId SSO endpoint url.
-  ## server_endpoint_url=https://www.google.com/accounts/o8/id
-
-  # OpenId 1.1 identity url prefix to be used instead of SSO endpoint url
-  # This is only supported if you are using an OpenId 1.1 endpoint
-  ## identity_url_prefix=https://app.onelogin.com/openid/your_company.com/
-
-  # Create users from OPENID on login.
-  ## create_users_on_login=true
-
-  # Use email for username
-  ## use_email_for_username=true
-
-
 ###########################################################################
 ###########################################################################
 # Settings to configure OAuth
 # Settings to configure OAuth
 ###########################################################################
 ###########################################################################

+ 0 - 20
desktop/conf/pseudo-distributed.ini.tmpl

@@ -339,7 +339,6 @@
     # - desktop.auth.backend.KnoxSpnegoDjangoBackend
     # - desktop.auth.backend.KnoxSpnegoDjangoBackend
     # - desktop.auth.backend.RemoteUserDjangoBackend
     # - desktop.auth.backend.RemoteUserDjangoBackend
     # - libsaml.backend.SAML2Backend
     # - libsaml.backend.SAML2Backend
-    # - libopenid.backend.OpenIDBackend
     # - liboauth.backend.OAuthBackend
     # - liboauth.backend.OAuthBackend
     # - desktop.auth.backend.OIDCBackend
     # - desktop.auth.backend.OIDCBackend
     #     (New oauth, support Twitter, Facebook, Google+ and Linkedin
     #     (New oauth, support Twitter, Facebook, Google+ and Linkedin
@@ -1887,25 +1886,6 @@
   ## logout_enabled=true
   ## logout_enabled=true
 
 
 
 
-###########################################################################
-# Settings to configure OpenID
-###########################################################################
-
-[libopenid]
-  # (Required) OpenId SSO endpoint url.
-  ## server_endpoint_url=https://www.google.com/accounts/o8/id
-
-  # OpenId 1.1 identity url prefix to be used instead of SSO endpoint url
-  # This is only supported if you are using an OpenId 1.1 endpoint
-  ## identity_url_prefix=https://app.onelogin.com/openid/your_company.com/
-
-  # Create users from OPENID on login.
-  ## create_users_on_login=true
-
-  # Use email for username
-  ## use_email_for_username=true
-
-
 ###########################################################################
 ###########################################################################
 # Settings to configure OAuth
 # Settings to configure OAuth
 ###########################################################################
 ###########################################################################

+ 0 - 1
desktop/core/requirements_py3.txt

@@ -26,7 +26,6 @@ django-debug-toolbar==1.9.1
 django-extensions==1.8.0
 django-extensions==1.8.0
 djangomako==1.0.1
 djangomako==1.0.1
 django-nose==1.4.5
 django-nose==1.4.5
-django-openid-auth==0.14
 django_opentracing==1.1.0
 django_opentracing==1.1.0
 django_prometheus==1.0.15
 django_prometheus==1.0.15
 djangosaml2==0.16.11
 djangosaml2==0.16.11

+ 0 - 8
desktop/core/src/desktop/settings.py

@@ -187,7 +187,6 @@ GTEMPLATE_DIRS = (
 
 
 INSTALLED_APPS = [
 INSTALLED_APPS = [
     'django.contrib.auth',
     'django.contrib.auth',
-    'django_openid_auth',
     'django.contrib.contenttypes',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sessions',
     'django.contrib.sites',
     'django.contrib.sites',
@@ -528,13 +527,6 @@ if SAML_AUTHENTICATION:
 for middleware in desktop.conf.MIDDLEWARE.get():
 for middleware in desktop.conf.MIDDLEWARE.get():
   MIDDLEWARE_CLASSES.append(middleware)
   MIDDLEWARE_CLASSES.append(middleware)
 
 
-# OpenId
-OPENID_AUTHENTICATION = 'libopenid.backend.OpenIDBackend' in AUTHENTICATION_BACKENDS
-if OPENID_AUTHENTICATION:
-  from libopenid.openid_settings import *
-  INSTALLED_APPS.append('libopenid')
-  LOGIN_URL = '/openid/login'
-  SESSION_EXPIRE_AT_BROWSER_CLOSE = True
 
 
 # OpenID Connect
 # OpenID Connect
 def is_oidc_configured():
 def is_oidc_configured():

+ 0 - 3
desktop/core/src/desktop/urls.py

@@ -227,9 +227,6 @@ static_patterns = []
 if settings.SAML_AUTHENTICATION:
 if settings.SAML_AUTHENTICATION:
   static_patterns.append(url(r'^saml2/', include('libsaml.urls')))
   static_patterns.append(url(r'^saml2/', include('libsaml.urls')))
 
 
-# OpenId specific
-if settings.OPENID_AUTHENTICATION:
-    static_patterns.append(url(r'^openid/', include('libopenid.urls')))
 
 
 if settings.OAUTH_AUTHENTICATION:
 if settings.OAUTH_AUTHENTICATION:
   static_patterns.append(url(r'^oauth/', include('liboauth.urls')))
   static_patterns.append(url(r'^oauth/', include('liboauth.urls')))

+ 0 - 36
desktop/libs/libopenid/Makefile

@@ -1,36 +0,0 @@
-#
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-ifeq ($(ROOT),)
-  $(error "Error: Expect the environment variable $$ROOT to point to the Desktop installation")
-endif
-
-include $(ROOT)/Makefile.sdk
-
-default::
-	@echo '  env-install    : Install into virtual-env'
-
-#
-# env-install
-#   Install app into the virtual environment.
-#
-.PHONY: env-install
-env-install: compile ext-env-install
-	@echo '--- Installing $(APP_NAME) into virtual-env'
-	@$(ENV_PYTHON) setup.py develop -N -q

+ 0 - 2
desktop/libs/libopenid/babel.cfg

@@ -1,2 +0,0 @@
-[python: src/libopenid/**.py]
-[mako: src/libopenid/templates/**.mako]

+ 0 - 1
desktop/libs/libopenid/hueversion.py

@@ -1 +0,0 @@
-../../../VERSION

+ 0 - 31
desktop/libs/libopenid/setup.py

@@ -1,31 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from setuptools import setup, find_packages
-from hueversion import VERSION
-
-setup(
-      name = "libopenid",
-      version = VERSION,
-      url = 'http://github.com/cloudera/hue',
-      description = "OPENID Libraries",
-      packages = find_packages('src'),
-      package_dir = {'': 'src' },
-      install_requires = ['setuptools', 'desktop'],
-      # Even libraries need to be registered as desktop_apps,
-      # if they have configuration, like this one.
-      entry_points = { 'desktop.sdk.lib': 'libopenid=libopenid' },
-)

+ 0 - 18
desktop/libs/libopenid/src/libopenid/__init__.py

@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import libopenid.metrics

+ 0 - 92
desktop/libs/libopenid/src/libopenid/backend.py

@@ -1,92 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-"""
-See desktop/auth/backend.py
-"""
-from __future__ import absolute_import
-
-import logging
-import sys
-
-from django.contrib.auth import logout as auth_logout
-from django_openid_auth.auth import OpenIDBackend as _OpenIDBackend
-
-from libopenid import metrics
-from useradmin.models import get_profile, get_default_user_group, UserProfile, User
-
-from desktop.auth.backend import rewrite_user
-
-
-LOG = logging.getLogger(__name__)
-
-
-class OpenIDBackend(_OpenIDBackend):
-  """
-  Wrapper around openid backend.
-  """
-
-  @metrics.openid_authentication_time
-  def authenticate(self, *args, **kwargs):
-    return super(OpenIDBackend, self).authenticate(*args, **kwargs)
-
-  def update_user_details(self, user, details, openid_response):
-    # Do this check up here, because the auth call creates a django user upon first login per user
-    is_super = False
-
-    if not UserProfile.objects.filter(creation_method=UserProfile.CreationMethod.EXTERNAL.name).exists():
-      # If there are no external users already in the system, the first one will
-      # become a superuser
-      is_super = True
-    elif User.objects.filter(username=user.username).exists():
-      # If the user already exists, we shouldn't change its superuser
-      # privileges. However, if there's a naming conflict with a non-external
-      # user, we should do the safe thing and turn off superuser privs.
-      user = User.objects.get(username=user.username)
-      existing_profile = get_profile(user)
-      if existing_profile.creation_method == UserProfile.CreationMethod.EXTERNAL.name:
-        is_super = user.is_superuser
-
-
-    super(OpenIDBackend, self).update_user_details(user, details, openid_response)
-
-
-    if user is not None and user.is_active:
-      profile = get_profile(user)
-      profile.creation_method = UserProfile.CreationMethod.EXTERNAL.name
-      profile.save()
-      user.is_superuser = is_super
-      user = rewrite_user(user)
-
-      default_group = get_default_user_group()
-      if default_group is not None:
-        user.groups.add(default_group)
-        user.save()
-
-
-  def get_user(self, user_id):
-    user = super(OpenIDBackend, self).get_user(user_id)
-    user = rewrite_user(user)
-    return user
-
-  @classmethod
-  def manages_passwords_externally(cls):
-    return True
-
-  @classmethod
-  def is_first_login_ever(cls):
-    """ Return true if no external user has ever logged in to Desktop yet. """
-    return not UserProfile.objects.filter(creation_method=UserProfile.CreationMethod.EXTERNAL.name).exists()

+ 0 - 68
desktop/libs/libopenid/src/libopenid/conf.py

@@ -1,68 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import json
-import os
-
-from django.utils.translation import ugettext_lazy as _t, ugettext as _
-
-from desktop.lib.conf import Config, coerce_bool, coerce_csv
-
-
-BASEDIR = os.path.dirname(os.path.abspath(__file__))
-
-
-def dict_list_map(value):
-  if isinstance(value, str):
-    d = {}
-    for k, v in json.loads(value).items():
-      d[k] = (v,)
-    return d
-  elif isinstance(value, dict):
-    return value
-  return None
-
-
-SERVER_ENDPOINT_URL = Config(
-  key="server_endpoint_url",
-  default="https://www.google.com/accounts/o8/id",
-  type=str,
-  help=_t("OpenId SSO endpoint url"))
-
-IDENTITY_URL_PREFIX = Config(
-  key="identity_url_prefix",
-  default="https://app.onelogin.com/openid/your_company.com/",
-  type=str,
-  help=_t("Openid identity url prefix"))
-
-CREATE_USERS_ON_LOGIN = Config(
-  key="create_users_on_login",
-  default=True,
-  type=coerce_bool,
-  help=_t("Create users from IdP on login."))
-
-USE_EMAIL_FOR_USERNAME = Config(
-  key="use_email_for_username",
-  default=True,
-  type=coerce_bool,
-  help=_t("Use email for username."))
-
-
-def config_validator(user):
-  res = []
-  if not SERVER_ENDPOINT_URL.get():
-    res.append(("libopenid.server_endpoint_url", _("Required OPENID SSO endpoint URL is not provided.")))
-  return res

+ 0 - 14
desktop/libs/libopenid/src/libopenid/forms.py

@@ -1,14 +0,0 @@
-from django_openid_auth.forms import OpenIDLoginForm
-from django.conf import settings
-
-class OpenIDLoginFormExt(OpenIDLoginForm):
-
-  def clean_openid_identifier(self):
-    openid_identifier = super(OpenIDLoginFormExt, self).clean_openid_identifier()
-    identity_url_prefix = getattr(settings, 'OPENID_IDENTITY_URL_PREFIX', None)
-
-    #Case of non centralized endpoint POST request with identity prefix
-    if identity_url_prefix is not None and not (openid_identifier.startswith('http') or openid_identifier.startswith('https')):
-      openid_identifier = identity_url_prefix + openid_identifier
-
-    return openid_identifier

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/de/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# German translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: de <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "OpenId-SSO-Endpunkt-URL"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "OpenId-Identitäts-URL-Präfix"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "Benutzer bei der Anmeldung aus IdP erstellen."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "E-Mail als Benutzernamen verwenden."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "Erforderliche OPENID SSO-Endpunkt-URL nicht vorhanden."

+ 0 - 39
desktop/libs/libopenid/src/libopenid/locale/en/LC_MESSAGES/django.po

@@ -1,39 +0,0 @@
-# English translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: en <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr ""
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr ""
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr ""
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr ""
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr ""
-

+ 0 - 39
desktop/libs/libopenid/src/libopenid/locale/en_US.pot

@@ -1,39 +0,0 @@
-# Translations template for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2014-01-10 11:03-0800\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr ""
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr ""
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr ""
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr ""
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr ""
-

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/es/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# Spanish translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: es <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "URL de extremo de SSO OpenId"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Prefijo de URL de identidad Openid"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "Crear usuarios de IdP al inicio de sesión."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "Usar correo electrónico como nombre de usuario."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "La URL del extremo de SSO OPENID necesaria no se ha indicado."

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/fr/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# French translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: fr <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "URL du point de terminaison OpenId SSO"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Préfixe de l'URL de l'identité Openid"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "Créez des utilisateurs à partir de l'IdP lors de la connexion."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "Utilisez le courriel comme nom d'utilisateur."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "L'URL du point de terminaison OPENID SSO requise n'est pas indiquée."

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/ja/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# Japanese translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: ja <LL@li.org>\n"
-"Plural-Forms: nplurals=1; plural=0\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "OpenId SSO エンドポイント URL"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Openid アイデンティティ URL のプレフィックス"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "ログイン時に IdP からユーザーを作成します。"
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "ユーザー名に電子メールを使用します。"
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "必須の OPENID SSO エンドポイント URL が指定されていません。"

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/ko/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# Korean translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: ko <LL@li.org>\n"
-"Plural-Forms: nplurals=1; plural=0\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "OpenId SSO 끝점 url"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Openid ID url 접두사"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "로그인 시 IdP에서 사용자를 생성합니다."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "사용자 이름에 이메일을 사용합니다."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "필수 OPENID SSO 끝점 URL을 제공하지 않았습니다."

+ 0 - 39
desktop/libs/libopenid/src/libopenid/locale/pt/LC_MESSAGES/django.po

@@ -1,39 +0,0 @@
-# Portuguese translations for Hue.
-# Copyright (C) 2012 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2015-02-04 18:46-0800\n"
-"PO-Revision-Date: 2012-11-07 13:08-0800\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: pt <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "URL de ponto final SSO OpenId"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Prefixo de URL de identidade Openid"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "Criar utilizadores de IdP no início de sessão."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "Usar e-mail para nome de utilizador."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "URL de ponto final SSO OPENID necessário não é fornecido."
-

+ 0 - 39
desktop/libs/libopenid/src/libopenid/locale/pt_BR/LC_MESSAGES/django.po

@@ -1,39 +0,0 @@
-# Portuguese (Brazil) translations for Hue.
-# Copyright (C) 2012 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2015-02-04 18:46-0800\n"
-"PO-Revision-Date: 2012-11-07 13:08-0800\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: pt_BR <LL@li.org>\n"
-"Plural-Forms: nplurals=2; plural=(n > 1)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "URL de ponto de extremidade SSO OpenId"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Prefixo de URL de identidade Openid"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "Crie usuários de IdP ao fazer login."
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "Use o email para nome de usuário."
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "URL de ponto de extremidade SSO OPENID obrigatória não fornecida."
-

+ 0 - 38
desktop/libs/libopenid/src/libopenid/locale/zh_CN/LC_MESSAGES/django.po

@@ -1,38 +0,0 @@
-# Chinese (China) translations for Hue.
-# Copyright (C) 2014 Cloudera, Inc
-# This file is distributed under the same license as the Hue project.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2014.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Hue VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-03-07 10:04-0800\n"
-"PO-Revision-Date: 2014-01-03 20:09+0000\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: zh_CN <LL@li.org>\n"
-"Plural-Forms: nplurals=1; plural=0\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 0.9.6\n"
-
-#: src/libopenid/conf.py:43
-msgid "OpenId SSO endpoint url"
-msgstr "OpenId SSO 端点 URL"
-
-#: src/libopenid/conf.py:49
-msgid "Openid identity url prefix"
-msgstr "Openid 身份 URL 前缀"
-
-#: src/libopenid/conf.py:55
-msgid "Create users from IdP on login."
-msgstr "登录时从 IdP 创建用户。"
-
-#: src/libopenid/conf.py:61
-msgid "Use email for username."
-msgstr "使用电子邮件作为用户名。"
-
-#: src/libopenid/conf.py:67
-msgid "Required OPENID SSO endpoint URL is not provided."
-msgstr "未提供必需的 OPENID SSO 端点 URL。"

+ 0 - 28
desktop/libs/libopenid/src/libopenid/metrics.py

@@ -1,28 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from __future__ import absolute_import
-
-from desktop.lib.metrics import global_registry
-
-openid_authentication_time = global_registry().timer(
-    name='auth.openid.auth-time',
-    label='OpenID Authentication Time',
-    description='The time spent waiting for OpenID to authenticate a user',
-    numerator='seconds',
-    counter_numerator='authentications',
-    rate_denominator='seconds',
-)

+ 0 - 42
desktop/libs/libopenid/src/libopenid/openid_settings.py

@@ -1,42 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-import libopenid.conf
-import logging
-
-import django_openid_auth
-import desktop.conf
-
-from desktop.lib import security_util
-
-
-__all__ = ['OPENID_CONFIG', 'OPENID_CREATE_USERS', 'OPENID_SSO_SERVER_URL', 'OPENID_USE_EMAIL_FOR_USERNAME', 'OPENID_IDENTITY_URL_PREFIX']
-
-
-OPENID_CONFIG = {  
-  # set to 1 to output debugging information
-  'debug': 1,
-}
-
-# openid sso endpoint url
-OPENID_SSO_SERVER_URL  = libopenid.conf.SERVER_ENDPOINT_URL.get();
-
-OPENID_CREATE_USERS = libopenid.conf.CREATE_USERS_ON_LOGIN.get();
-
-OPENID_USE_EMAIL_FOR_USERNAME = libopenid.conf.USE_EMAIL_FOR_USERNAME.get();
-
-OPENID_IDENTITY_URL_PREFIX = libopenid.conf.IDENTITY_URL_PREFIX.get();

+ 0 - 170
desktop/libs/libopenid/src/libopenid/templates/openid-login.html

@@ -1,170 +0,0 @@
-{% load i18n %}
-{% load static %}
-
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-  {% if first_login_ever %}
-    <title>{% trans "Hue - Sign up" %}</title>
-  {% else %}
-    <title>{% trans "Hue - Sign in"%}</title>
-  {% endif %}
-
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  <meta name="description" content="">
-  <meta name="author" content="">
-
-  <link href="{% static 'desktop/ext/css/font-awesome.min.css' %}" rel="stylesheet">
-  <link href="{% static 'desktop/css/hue3.css' %}" rel="stylesheet">
-  <link href="{% static 'desktop/css/hue3-extra.css' %}" rel="stylesheet">
-
-  <style type="text/css">
-    body {
-      padding-top: 80px;
-    }
-
-    #logo {
-      display: block;
-      margin-left: auto;
-      margin-right: auto;
-      margin-bottom: 30px
-    }
-
-    .login-content {
-      width: 400px;
-      display: block;
-      margin-left: auto;
-      margin-right: auto;
-    }
-
-    .login-content label {
-      margin-bottom: 20px;
-      font-size: 16px;
-    }
-
-    .login-content input[type='text'] {
-      width: 250px;
-      font-size: 14px;
-    }
-    .login-content input {
-      width: 80px;
-      padding: 2px 8px;
-      display: inline-block;
-      height: 30px;
-      min-height: 30px;
-      margin: 0 0 10px 0;
-    }
-	.login-content h3 {
-      text-align: center;
-      margin: 0 0 -25px;
-      font-size: 18px;
-      color: silver;
-    }
-	
-    hr {
-      border-top-color: #DEDEDE;
-    }
-
-    ul.errorlist li {
-      font-size: 13px;
-      font-weight: normal;
-      font-style: normal;
-    }
-
-    input.error {
-      border-color: #b94a48;
-      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-      -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-      box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-    }
-
-    .well {
-      border: 1px solid #D8D8D8;
-      border-radius: 3px 3px 3px 3px;
-    }
-
-    .footer {
-      position: fixed;
-      bottom: 0;
-      background-color: #338BB8;
-      height: 4px;
-      width: 100%;
-    }
-  </style>
-</head>
-
-<body>
-
-<div class="footer"></div>
-
-<div class="navigator">
-  <a class="brand nav-tooltip pull-left" href="#">
-    <img src="{% static 'desktop/art/hue-logo-mini-white.png' %}"
-			data-orig="{% static 'desktop/art/hue-logo-mini-white.png' %}"
-			data-hover="{% static 'desktop/art/hue-logo-mini-white-hover.png' %}"/>
-  </a>
-</div>
-
-
-<div class="container">
-  <div class="row">
-    <div class="login-content">
-      <form method="POST" action="{{ action }}" class="well">
-        {% csrf_token %}
-        <img id="logo" src="{% static 'desktop/art/hue-login-logo.png' %}" data-orig="{% static 'desktop/art/hue-login-logo.png' %}"
-             data-hover="{% static 'desktop/art/hue-login-logo-skew.png' %}"/>
-
-        {% if login_errors %}
-            <div class="alert alert-error" style="text-align: center">
-              <strong><i class="fa fa-exclamation-triangle"></i> {% trans  "Error!" %}</strong> {% trans  "Invalid username or password." %}
-            </div>
-        {% endif %}
-
-        {% if first_login_ever %}
-            <div class="alert alert-block">
-              <i class="fa fa-exclamation-triangle"></i>
-			  {% trans  "This is your first time logging in." %}
-              <strong>{% trans  "You will become Hue superuser." %}</strong>.
-            </div>
-			<h3>{% trans "Use Your OpenID Identity" %}</h3>
-            <hr/>
-            <input type="submit" class="btn btn-large btn-primary" value="{% trans  "Sign up" %}"/>
-        {% else %}
-            <h3>{% trans "Use Your OpenID Identity" %}</h3>
-			<hr/>
-			{% if not hide_field %}
-				{{ form.openid_identifier }}
-			{% endif %}
-            <input type="submit" name="bsignin" class="btn btn-large btn-primary" value="{% trans  "Sign in" %}"/>
-        {% endif %}
-        <input type="hidden" name="next" value="{{ next }}"/>
-      </form>
-    </div>
-  </div>
-</div>
-
-<script src="{% static 'desktop/ext/js/jquery/jquery-2.2.4.min.js' %}"></script>
-<script>
-  $(document).ready(function () {
-    var _skew = -1;
-    $("[data-hover]").on("mouseover", function () {
-      var _this = $(this);
-      _skew = window.setTimeout(function () {
-        _this.attr("src", _this.data("hover"));
-        $("#visit").removeClass("hide");
-      }, 3000);
-    });
-
-    $("[data-hover]").on("mouseout", function () {
-      $(this).attr("src", $(this).data("orig"));
-      window.clearTimeout(_skew);
-    });
-
-    $("ul.errorlist").each(function () {
-      $(this).prev().addClass("error");
-    });
-  });
-</script>
-</body>
-</html>

+ 0 - 24
desktop/libs/libopenid/src/libopenid/urls.py

@@ -1,24 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from django.conf.urls import url
-from libopenid import views as libopenid_views
-
-urlpatterns = [
-        url(r'^login/$', libopenid_views.login_begin, name='openid-login'),
-        url(r'^complete/$', libopenid_views.login_complete, name='openid-complete')
-]

+ 0 - 59
desktop/libs/libopenid/src/libopenid/views.py

@@ -1,59 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import logging
-
-from django_openid_auth.views import login_begin as django_login_begin, login_complete
-
-from desktop.lib.django_util import render
-from django.core import urlresolvers
-from django.conf import settings
-from django.shortcuts import render_to_response
-from django.template import RequestContext
-
-import libopenid.conf
-from libopenid.backend import OpenIDBackend
-from libopenid.forms import OpenIDLoginFormExt
-
-
-__all__ = ['login_begin', 'login_complete']
-
-
-def login_begin(request):
-  redirect_to = request.GET.get('next', '/')
-  is_first_login_ever = OpenIDBackend.is_first_login_ever()
-
-  request.session.set_test_cookie()
-
-  openid_url = getattr(settings, 'OPENID_SSO_SERVER_URL', None)
-  identity_url_prefix = getattr(settings, 'OPENID_IDENTITY_URL_PREFIX', None)
-
-  #Case of centralized server endpoint Get request
-  if openid_url is not None:
-     if request.method == 'GET':
-       return render_to_response('openid-login.html', {
-          'action': urlresolvers.reverse('openid-login'),
-          'next': redirect_to,
-          'first_login_ever': is_first_login_ever,
-          'hide_field': True
-       }, context_instance=RequestContext(request))
-
-  return django_login_begin(request, template_name='openid-login.html', form_class = OpenIDLoginFormExt)
-
-
-setattr(login_begin, 'login_notrequired', True)
-setattr(login_complete, 'login_notrequired', True)

+ 0 - 1
ext/thirdparty/README.md

@@ -24,7 +24,6 @@ Checked-in third party dependencies
 |Y|django-axes|1.5.0|MIT|http://github.com/django-pci/django-axes.git|
 |Y|django-axes|1.5.0|MIT|http://github.com/django-pci/django-axes.git|
 |Y|Django Extensions|1.5.0|New BSD|http://pypi.python.org/pypi/django-extensions/1.5.0|
 |Y|Django Extensions|1.5.0|New BSD|http://pypi.python.org/pypi/django-extensions/1.5.0|
 |Y|Django_nose (part of basie)|1.3|MIT|http://code.basieproject.org/trunk/apps/django_nose/nose_runner.py|
 |Y|Django_nose (part of basie)|1.3|MIT|http://code.basieproject.org/trunk/apps/django_nose/nose_runner.py|
-|Y|django-openid-auth|0.5| |http://openidenabled.com/python-openid/|
 |Y|django-webpack-loader|0.5.0|MIT|https://github.com/owais/django-webpack-loader/|
 |Y|django-webpack-loader|0.5.0|MIT|https://github.com/owais/django-webpack-loader/|
 |Y|djangosaml2|0.16.4|Apache ||
 |Y|djangosaml2|0.16.4|Apache ||
 |Y|dnspython|1.15.0|ISC|https://pypi.org/project/dnspython/1.15.0/|
 |Y|dnspython|1.15.0|ISC|https://pypi.org/project/dnspython/1.15.0/|