Skip to content

Commit cd01c44

Browse files
authored
Merge pull request #306 from AzureAD/interactive-sample-prompt
Add prompt parameter into interactive sample
2 parents a66d314 + 886c3f3 commit cd01c44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sample/interactive_sample.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@
5555
print("A local browser window will be open for you to sign in. CTRL+C to cancel.")
5656
result = app.acquire_token_interactive(
5757
config["scope"],
58-
login_hint=config.get("username"), # You can use this parameter to pre-fill
58+
login_hint=config.get("username"), # Optional.
59+
# If you know the username ahead of time, this parameter can pre-fill
5960
# the username (or email address) field of the sign-in page for the user,
60-
# if you know the username ahead of time.
6161
# Often, apps use this parameter during reauthentication,
6262
# after already extracting the username from an earlier sign-in
6363
# by using the preferred_username claim from returned id_token_claims.
64+
65+
#prompt="select_account", # Optional. It forces to show account selector page
6466
)
6567

6668
if "access_token" in result:

0 commit comments

Comments
 (0)