diff --git a/gestiojeux_auth/cas_backend.py b/gestiojeux_auth/cas_backend.py deleted file mode 100644 index fdb5c14..0000000 --- a/gestiojeux_auth/cas_backend.py +++ /dev/null @@ -1,14 +0,0 @@ -from django_cas_ng.backends import CASBackend -from .models import CasUser - - -class GestioJeuxCASBackend(CASBackend): - # Copied from the BOcal project - # Partly from Robin Champenois's "ExperiENS". Thanks! - def clean_username(self, username): - return username.lower().strip() - - def configure_user(self, user): - casUser = CasUser(user=user) - casUser.save() - return user diff --git a/gestiojeux_auth/migrations/0001_initial.py b/gestiojeux_auth/migrations/0001_initial.py deleted file mode 100644 index 199923c..0000000 --- a/gestiojeux_auth/migrations/0001_initial.py +++ /dev/null @@ -1,22 +0,0 @@ -# Generated by Django 3.1.2 on 2020-10-21 19:57 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('auth', '0012_alter_user_first_name_max_length'), - ] - - operations = [ - migrations.CreateModel( - name='CasUser', - fields=[ - ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='auth.user')), - ], - ), - ] diff --git a/gestiojeux_auth/migrations/__init__.py b/gestiojeux_auth/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/gestiojeux_auth/models.py b/gestiojeux_auth/models.py deleted file mode 100644 index c83b39a..0000000 --- a/gestiojeux_auth/models.py +++ /dev/null @@ -1,11 +0,0 @@ -from django.db import models -from django.contrib.auth.models import User - - -class CasUser(models.Model): - ''' Describes a Django user that was created through CAS ''' - - user = models.OneToOneField( - User, - on_delete=models.CASCADE, - primary_key=True)