We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2b31a commit 61cb10eCopy full SHA for 61cb10e
1 file changed
src/azure-cli-core/azure/cli/core/auth/util.py
@@ -41,9 +41,10 @@ def aad_error_handler(error, **kwargs):
41
error_codes = error.get('error_codes')
42
43
# Build recommendation message
44
+ recommendation = None
45
if error_codes and 7000215 in error_codes:
46
recommendation = PASSWORD_CERTIFICATE_WARNING
- else:
47
+ elif kwargs:
48
login_command = _generate_login_command(**kwargs)
49
recommendation = "Interactive authentication is needed. Please run:\n{}".format(login_command)
50
0 commit comments