diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cada9068..61d5988c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ py37-django22: apt-get install --no-install-recommends -t buster-backports -y python3-django python3-django-crispy-forms python3-django-extensions python3-django-filters python3-django-polymorphic - python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil + python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil python3-babel python3-lockfile python3-pip python3-phonenumbers python3-bs4 python3-setuptools tox texlive-xetex script: tox -e py37-django22 @@ -33,7 +33,7 @@ py38-django22: apt-get install --no-install-recommends -y python3-django python3-django-crispy-forms python3-django-extensions python3-django-filters python3-django-polymorphic - python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil + python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil python3-babel python3-lockfile python3-pip python3-phonenumbers python3-bs4 python3-setuptools tox texlive-xetex script: tox -e py38-django22 diff --git a/Dockerfile b/Dockerfile index 0dd1ce8b..9696de7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && \ apt-get install --no-install-recommends -t buster-backports -y \ python3-django python3-django-crispy-forms \ python3-django-extensions python3-django-filters python3-django-polymorphic \ - python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil \ + python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil \ python3-babel python3-lockfile python3-pip python3-phonenumbers ipython3 \ python3-bs4 python3-setuptools \ uwsgi uwsgi-plugin-python3 \ diff --git a/README.md b/README.md index f2ada2a8..910fd19a 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Sinon vous pouvez suivre les étapes décrites ci-dessous. $ sudo apt install --no-install-recommends -t buster-backports -y \ python3-django python3-django-crispy-forms \ python3-django-extensions python3-django-filters python3-django-polymorphic \ - python3-djangorestframework python3-django-cas-server python3-psycopg2 python3-pil \ + python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil \ python3-babel python3-lockfile python3-pip python3-phonenumbers ipython3 \ python3-bs4 python3-setuptools \ uwsgi uwsgi-plugin-python3 \ diff --git a/ansible/roles/1-apt-basic/tasks/main.yml b/ansible/roles/1-apt-basic/tasks/main.yml index 1ca1b3d6..95f6d40a 100644 --- a/ansible/roles/1-apt-basic/tasks/main.yml +++ b/ansible/roles/1-apt-basic/tasks/main.yml @@ -23,10 +23,10 @@ - python3-babel - python3-bs4 - python3-django - - python3-django-cas-server - python3-django-crispy-forms - python3-django-extensions - python3-django-filters + - python3-django-oauth-toolkit - python3-django-polymorphic - python3-djangorestframework - python3-lockfile diff --git a/note_kfet/admin.py b/note_kfet/admin.py index f128b237..1fa228fe 100644 --- a/note_kfet/admin.py +++ b/note_kfet/admin.py @@ -44,9 +44,3 @@ if "rest_framework" in settings.INSTALLED_APPS: from rest_framework.authtoken.admin import * from rest_framework.authtoken.models import * admin_site.register(Token, TokenAdmin) - -if "cas_server" in settings.INSTALLED_APPS: - from cas_server.admin import * - from cas_server.models import * - admin_site.register(ServicePattern, ServicePatternAdmin) - admin_site.register(FederatedIendityProvider, FederatedIendityProviderAdmin) diff --git a/note_kfet/fixtures/cas.json b/note_kfet/fixtures/cas.json deleted file mode 100644 index c3109d19..00000000 --- a/note_kfet/fixtures/cas.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "model": "cas_server.servicepattern", - "pk": 1, - "fields": { - "pos": 1, - "pattern": ".*", - "name": "REPLACEME" - } - } -] diff --git a/note_kfet/settings/__init__.py b/note_kfet/settings/__init__.py index dcfa88a8..0c76b6f4 100644 --- a/note_kfet/settings/__init__.py +++ b/note_kfet/settings/__init__.py @@ -49,13 +49,6 @@ try: except ImportError: pass -if "cas_server" in INSTALLED_APPS: - # CAS Settings - CAS_AUTO_CREATE_USER = False - CAS_LOGO_URL = "/static/img/Saperlistpopette.png" - CAS_FAVICON_URL = "/static/favicon/favicon-32x32.png" - CAS_SHOW_POWERED = False - if "logs" in INSTALLED_APPS: MIDDLEWARE += ('note_kfet.middlewares.SessionMiddleware',) diff --git a/note_kfet/settings/secrets_example.py b/note_kfet/settings/secrets_example.py index b1f9e399..656e558b 100644 --- a/note_kfet/settings/secrets_example.py +++ b/note_kfet/settings/secrets_example.py @@ -3,7 +3,6 @@ # CAS OPTIONAL_APPS = [ -# 'cas_server', # 'debug_toolbar' ] diff --git a/note_kfet/templates/cas_server/base.html b/note_kfet/templates/cas_server/base.html deleted file mode 100644 index 4e93cee0..00000000 --- a/note_kfet/templates/cas_server/base.html +++ /dev/null @@ -1,99 +0,0 @@ -{% load i18n %}{% load static %}{% get_current_language as LANGUAGE_CODE %} - -
- - - -