Skip to content

Commit 6b9de70

Browse files
committed
Add additional auth code flow warning
1 parent 11568f4 commit 6b9de70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/azure-cli-core/azure/cli/core/auth/identity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def _prompt_launching_ui(ui=None, **_):
155155
"If no web browser is available or if the web browser fails to open, use device code "
156156
"flow with `az login --use-device-code`.",
157157
self._msal_app.authority.authorization_endpoint)
158+
logger.warning("Important: The authentication URL you are opening contains account‑sensitive "
159+
"parameters. Never share or paste this URL anywhere.")
160+
logger.warning("Sharing it may allow others to authenticate as you.")
158161
elif ui == 'broker':
159162
logger.warning(WAM_PROMPT)
160163

0 commit comments

Comments
 (0)