Skip to content

Releases: epfl-si/django-tequila

4.0.0

04 May 15:38
Compare
Choose a tag to compare

Change

  • Update to Django 3.2+
  • Add a sample_app for Django 4.2

3.4.0

14 Apr 13:08
Compare
Choose a tag to compare

Added

  • Support for the Tequila 2.1 protocol

Change

  • Remove the useless trailing '?' if there is no parameter left when returning from Tequila

3.3.0

14 Apr 13:07
7b47ced
Compare
Choose a tag to compare
  • the Remedy version : due to a change how Tequila manage the users identification, this version is a transition to a unique config, with the Django Username being the field "sciper".

    • In detail, if a person is not active anymore inside Tequila, as Tequila username or email field can be redistributed to a new person, the only real unique ID for a person is the sciper ('uniqueid' in Tequila)
  • If you used so something else into TEQUILA_CUSTOM_USERNAME_ATTRIBUTE as uniqueid, a special behavior (see next point) is put in place to keep every user unique. You are not forced to change anything, though you can have overlapping users if you keep away from the 'uniqueid' field.

  • To mitigate this change, this version use a special behavior : when a user is found with the same sciper but with an already existing username field : we rename (see def backup_user_with_same_username in django_tequila/django_backend/init.py) the "old" username to keep every user different. Of course, to identify this user, a sciper field should be set into the User model.

  • Please consider verifying and, if needed, changing your models, your data and your settings.

  • For the version 3.3.0 (not mandatory but highly recommanded) :

    • Assert your model has a sciper field and is not empty, so user can be identify has unique :
      • class User(AbstractUser): ... sciper = models.CharField(max_length=10, null=True, blank=True, unique=True) ...
  • For the next major version :

    • Assert your settings use the only field wanted in Tequila :
      • TEQUILA_CUSTOM_USERNAME_ATTRIBUTE = "uniqueid"
    • Assert your model use it as primary field
      • class User(AbstractUser): ... USERNAME_FIELD = 'sciper'
  • see ./sample_app/python3-8-django-2 for a good app sample

3.2.0

23 Apr 13:11
Compare
Choose a tag to compare
  • Update to Django 2.2
  • Being able to redirect to a different site after logout

3.0.2

26 Feb 12:31
Compare
Choose a tag to compare

Fix

  • Version number in .py

3.0.1

26 Feb 12:21
Compare
Choose a tag to compare

Added

  • Tools for debugging the sample_app

Fix

  • Fix missing save on user's profile

2.1.17

29 Jan 10:03
Compare
Choose a tag to compare
Set to 2.1.17

2.1.16

29 Jan 09:42
Compare
Choose a tag to compare
Set version 2.1.16

2.1.15

28 Aug 13:05
Compare
Choose a tag to compare
Merge pull request #4 from epfl-idevelop/update_version

update AUTHORS and version

2.1.14

03 Aug 12:44
Compare
Choose a tag to compare
Fix accidently removing other parameters in url than the ask one