Skip to content

Commit 864f9ec

Browse files
committed
Use the newly introduced prompt constants
1 parent 633289d commit 864f9ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

msal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
ConfidentialClientApplication,
3232
PublicClientApplication,
3333
)
34+
from .oauth2cli.oidc import Prompt
3435
from .token_cache import TokenCache, SerializableTokenCache
3536

sample/interactive_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
# after already extracting the username from an earlier sign-in
6363
# by using the preferred_username claim from returned id_token_claims.
6464

65-
#prompt="select_account", # Optional. It forces to show account selector page
66-
#prompt="create", # Optional. It brings user to a self-service sign-up flow.
65+
#prompt=msal.Prompt.SELECT_ACCOUNT, # Or simply "select_account". Optional. It forces to show account selector page
66+
#prompt=msal.Prompt.CREATE, # Or simply "create". Optional. It brings user to a self-service sign-up flow.
6767
# Prerequisite: https://docs.microsoft.com/en-us/azure/active-directory/external-identities/self-service-sign-up-user-flow
6868
)
6969

0 commit comments

Comments
 (0)