Skip to content

Commit 2c5859b

Browse files
committed
Switch ms-identity-python
1 parent 497e098 commit 2c5859b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

mysite/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import os, random, string
1515
from dotenv import load_dotenv
16-
from identity.django import Auth
16+
from ms_identity_python.django import Auth # pip install "ms_identity_python[django] @ git+https://github.com/azure-samples/[email protected]"
1717
load_dotenv()
1818
AUTH = Auth(
1919
os.getenv('CLIENT_ID'),

requirements.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Since we currently still supports Python 3.7, we choose Django version accordingly.
2-
# See https://docs.djangoproject.com/en/5.0/faq/install/#what-python-version-can-i-use-with-django
3-
django>=3.2,<6
4-
5-
identity>=0.7,<0.8
1+
ms_identity_python[django] @ git+https://github.com/azure-samples/[email protected]
62
python-dotenv<0.22
73
requests>=2,<3

0 commit comments

Comments
 (0)