Skip to content

Latest commit

 

History

History
283 lines (140 loc) · 10.6 KB

CHANGELOG.md

File metadata and controls

283 lines (140 loc) · 10.6 KB

CHANGELOG

v5.0.0 (2024-10-09)

Breaking

  • feat!: Add support to Python 3.13

This is a BREAKING CHANGE commit. Changes:

  • Add support to 3.13
  • Remove support to 3.10
  • Add new option MICROSOFT_SSO_GRAPH_TIMEOUT
  • Update GitHub Actions (6718685)

Continuous Integration

Documentation

Unknown

  • Merge pull request #14 from megalus/develop

feat!: Add support to Python 3.13 (17c5ed3)

v4.1.0 (2024-09-17)

Features

  • feat: Add new option MICROSOFT_SSO_SHOW_FAILED_LOGIN_MESSAGE

Also failed attempts to create user in database will be logged on terminal (abbc1b4)

v4.0.0 (2024-08-29)

Breaking

  • feat!: Add new options and update versions

Changes:

  • Remove support for Django 4.1
  • Add support for Django 5.1
  • Add option MICROSOFT_SSO_PRE_VALIDATE_CALLBACK
  • Add option MICROSOFT_SSO_SAVE_BASIC_MICROSOFT_INFO
  • Update docs

This is a BREAKING CHANGE commit. (9250b51)

v3.5.1 (2024-07-31)

Fixes

  • fix: bug when combining email and user principal names, for upper and lower cases scenarios, during user creation (4a4d258)

v3.5.0 (2024-07-30)

Documentation

Features

  • feat: add option to add all created users as admin staff

Also fix avoid duplicate users when email is not lowercase (567f5aa)

Unknown

  • Merge pull request #12 from megalus/develop

Feat: Add option in include all users as staff (cb8f55b)

  • Merge pull request #11 from darkjonas88/Wildcard_Staff_user_creation

Creation of a wildcard for is staff flag for admin. (3500e27)

  • Insensitive case for the filter (088edbc)

  • Forcing email to lower case so that there aren't duplicate accounts (1e1b6c6)

  • Creation of a wildcard for is staff flag for admin. (904bc34)

  • Merge pull request #10 from megalus/develop

Docs: Update Docs for initial setup (6a289aa)

  • Merge pull request #9 from illgitthat/main

(minor) Docs update for some initial setup errors (84b0f1a)

  • (minor) Docs update for some initial setup errors (8c6c9d6)

v3.4.1 (2024-06-07)

Fixes

  • fix: Add support to Django USERNAME_FIELD (16e1a2f)

v3.4.0 (2024-04-23)

Features

  • feat: add more control on messaging

Use the MICROSOFT_SSO_ENABLE_LOGS to enable/disable logs. Logs now will show all info send to django messages.

Use the MICROSOFT_SSO_ENABLE_MESSAGES to enable/disable django messages. (ff037c3)

v3.3.1 (2024-04-09)

Fixes

  • fix: add token in request before call pre-create callback (e6d2bb8)

v3.3.0 (2024-04-09)

Features

  • feat: Add support to custom attributes in User model before creation.

    Use the MICROSOFT_SSO_PRE_CREATE_CALLBACK setting to define a custom function which can return a dictionary which will be used during user creation for the defaults value. (acbc5f1)

v3.2.0 (2024-03-14)

Chores

  • chore: check for different null values in Azure response (6e4fa9b)

  • chore: return empty string instead of None for optional azure fields (5a3c412)

Features

  • feat: change User unique index from mail to userPrincipalName

This means the lib will check for the user.username field to decide when to get or create a user. This is needed to work with tenant users with no email address saved.

If you want to enforce unique email addresses in your database (checking against user.email) please set the option MICROSOFT_SSO_UNIQUE_EMAIL=True (13d39fb)

Unknown

  • Merge pull request #7 from megalus/develop

Change unique index to username (936ddac)

  • Merge pull request #5 from darqs1/patch-1

Update main.py (83aef24)

  • Update main.py

line 153: added if user_mail is None use upn instead of mail. (57560a8)

v3.1.0 (2024-03-13)

Features

  • feat: Add support to custom token authorities

Use the MICROSOFT_SSO_AUTHORITY passing the full authority URL (like: https://login.microsoftonline.com/your_tenant) or a AuthorityBuilder instance. (99a7e71)

Unknown

  • Merge pull request #3 from megalus/develop

New Release (31b46a4)

  • Merge pull request #2 from darqs1/main

Added MICROSOFT_SSO_AUTHORITY (4dbb5c2)

v3.0.1 (2024-03-12)

Fixes

  • fix: error when create a user with empty username when a user with no username already exists on database (a0cc158)

v3.0.0 (2024-03-12)

Breaking

  • feat!: Add basic support to custom login templates.

Rework the login.html and login_sso.html to simplify login template customization. The use case is the Django Unfold package. This is a BREAKING CHANGE for the static and html files.

Also:

  • Remove pytest-lazy-fixture to upgrade pytest to latest version (96ac7cf)

v2.1.1 (2024-01-24)

Fixes

  • fix: Add missing optional args for initiate

Call initiate passing custom scopes or redirect. Pending documentation. (5fc3c49)

v2.1.0 (2024-01-24)

Chores

  • chore: Better Stela use

Also add missing tests in GitHub Actions (09c58ca)

Features

  • feat: use microsoft official library

Replacing identity for msal. The previous library is good, but out intent here is to reduce the number of dependencies involved in case Microsoft rewrites its sign-in process. (a8eeb21)

v2.0.1 (2023-12-22)

Fixes

  • fix: remove debug logging (9c9e5de)

v2.0.0 (2023-12-20)

Breaking

  • feat!: New version

BREAKING CHANGE:

  • Remove Django 4.1 support
  • Add Django 5.0 support
  • Fix SSO_USE_ALTERNATE_W003 bug
  • Fix several CSS issues with custom logo images
  • Update docs (e4ef9cb)

Documentation

v1.0.0 (2023-11-23)

Breaking

  • feat!: v1.0

BREAKING CHANGE: This is the first public release (838b62a)

Chores

Unknown