- 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
)
- ci: fix github actions (
26dffbf
)
- Merge pull request #14 from megalus/develop
feat!: Add support to Python 3.13 (17c5ed3
)
- feat: Add new option MICROSOFT_SSO_SHOW_FAILED_LOGIN_MESSAGE
Also failed attempts to create user in database will be logged on terminal (abbc1b4
)
- 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
)
- fix: bug when combining email and user principal names, for upper and lower cases scenarios, during user creation (
4a4d258
)
- docs: update docs (
1f4c224
)
- feat: add option to add all created users as admin staff
Also fix avoid duplicate users when email is not lowercase (567f5aa
)
- 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
)
- fix: Add support to Django USERNAME_FIELD (
16e1a2f
)
- 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
)
- fix: add token in request before call pre-create callback (
e6d2bb8
)
-
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 thedefaults
value. (acbc5f1
)
-
chore: check for different null values in Azure response (
6e4fa9b
) -
chore: return empty string instead of None for optional azure fields (
5a3c412
)
- 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
)
- 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
)
- 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
)
- Merge pull request #3 from megalus/develop
New Release (31b46a4
)
- Merge pull request #2 from darqs1/main
Added MICROSOFT_SSO_AUTHORITY (4dbb5c2
)
- fix: error when create a user with empty username when a user with no username already exists on database (
a0cc158
)
- 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
)
- fix: Add missing optional args for initiate
Call initiate passing custom scopes or redirect. Pending documentation. (5fc3c49
)
- chore: Better Stela use
Also add missing tests in GitHub Actions (09c58ca
)
- 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
)
- fix: remove debug logging (
9c9e5de
)
- 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
)
- docs: small fix (
53992c8
)
- feat!: v1.0
BREAKING CHANGE: This is the first public release (838b62a
)