From 886c3f36d71fcf1d6a303ddefa16b9964f46ac15 Mon Sep 17 00:00:00 2001 From: Ray Luo Date: Tue, 2 Feb 2021 21:05:58 -0800 Subject: [PATCH] Add prompt parameter into interactive sample --- sample/interactive_sample.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sample/interactive_sample.py b/sample/interactive_sample.py index 38593315..2e5b1cf6 100644 --- a/sample/interactive_sample.py +++ b/sample/interactive_sample.py @@ -55,12 +55,14 @@ print("A local browser window will be open for you to sign in. CTRL+C to cancel.") result = app.acquire_token_interactive( config["scope"], - login_hint=config.get("username"), # You can use this parameter to pre-fill + login_hint=config.get("username"), # Optional. + # If you know the username ahead of time, this parameter can pre-fill # the username (or email address) field of the sign-in page for the user, - # if you know the username ahead of time. # Often, apps use this parameter during reauthentication, # after already extracting the username from an earlier sign-in # by using the preferred_username claim from returned id_token_claims. + + #prompt="select_account", # Optional. It forces to show account selector page ) if "access_token" in result: