Skip to content

Commit fccef7f

Browse files
committed
Add bug report link for PyMsalRuntime
1 parent 30ef839 commit fccef7f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/msaltest.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _acquire_token_interactive(app, scopes, data=None):
7474
# login_hint is unnecessary when prompt=select_account,
7575
# but we still let tester input login_hint, just for testing purpose.
7676
[None] + [a["username"] for a in app.get_accounts()],
77-
header="login_hint? (If you have multiple signed-in sessions in browser, and you specify a login_hint to match one of them, you will bypass the account picker.)",
77+
header="login_hint? (If you have multiple signed-in sessions in browser/broker, and you specify a login_hint to match one of them, you will bypass the account picker.)",
7878
accept_nonempty_string=True,
7979
)
8080
login_hint = raw_login_hint["username"] if isinstance(raw_login_hint, dict) else raw_login_hint
@@ -127,9 +127,13 @@ def remove_account(app):
127127
app.remove_account(account)
128128
print('Account "{}" and/or its token(s) are signed out from MSAL Python'.format(account["username"]))
129129

130-
def exit(_):
130+
def exit(app):
131131
"""Exit"""
132-
bug_link = "https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/new/choose"
132+
bug_link = (
133+
"https://identitydivision.visualstudio.com/Engineering/_queries/query/79b3a352-a775-406f-87cd-a487c382a8ed/"
134+
if app._enable_broker else
135+
"https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/new/choose"
136+
)
133137
print("Bye. If you found a bug, please report it here: {}".format(bug_link))
134138
sys.exit()
135139

0 commit comments

Comments
 (0)