Skip to content

Commit df1198a

Browse files
committed
reauth-sp
1 parent 5c3cf2f commit df1198a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def aad_error_handler(error, tenant=None, scopes=None, claims_challenge=None):
4444
recommendation = None
4545
if error_codes and 7000215 in error_codes:
4646
recommendation = PASSWORD_CERTIFICATE_WARNING
47-
else:
47+
elif tenant or scopes or claims_challenge:
4848
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'

0 commit comments

Comments
 (0)