Skip to content

Commit 2f3eb23

Browse files
committed
update
1 parent 6d04be5 commit 2f3eb23

File tree

1 file changed

+2
-2
lines changed
  • src/azure-cli-core/azure/cli/core/auth

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"To pass a service principal certificate, use --certificate instead.")
2121

2222

23-
def aad_error_handler(error, claims_challenge, **kwargs):
23+
def aad_error_handler(error, tenant=None, scopes=None, claims_challenge=None):
2424
""" Handle the error from AAD server returned by ADAL or MSAL. """
2525

2626
# https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-aadsts-error-codes
@@ -45,7 +45,7 @@ def aad_error_handler(error, claims_challenge, **kwargs):
4545
if error_codes and 7000215 in error_codes:
4646
recommendation = PASSWORD_CERTIFICATE_WARNING
4747
else:
48-
login_command = _generate_login_command(claims_challenge=claims_challenge, **kwargs)
48+
login_command = _generate_login_command(tenant=tenant, scopes=scopes, claims_challenge=claims_challenge)
4949
login_message = ('Run the command below to authenticate interactively; '
5050
'additional arguments may be added as needed:\n'
5151
f'{login_command}')

0 commit comments

Comments
 (0)