Skip to content

Commit f107a15

Browse files
committed
sample edit
1 parent 2e8c9b3 commit f107a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/username_password_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def acquire_and_use_token():
6767

6868
if not result:
6969
logging.info("No suitable token exists in cache. Let's get a new one from AAD.")
70+
logging.info("This flow has been deprecated")
7071
# See this page for constraints of Username Password Flow.
7172
# https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication
72-
result = global_app.acquire_token
7373
result = global_app.acquire_token_by_username_password(
7474
os.getenv("USERNAME"), password, scopes=scopes)
7575

0 commit comments

Comments
 (0)