-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Accountaz login/accountaz login/accountMSALcommon issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
The command failed with an unexpected error. Here is the traceback:
0. The ID token is not yet valid. Current epoch = 1637158952. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/e1b4ceea-1305-421c-9ea8-f724a6a835d7/v2.0",
"iat": 1637159134,
"nbf": 1637159134,
"exp": 1637163034,
"aio": "AVQAq/8TAAAAaKquAsSjlP+y4x0LEAR4fCQ5S1UqNp/BIYiYBn8EQ+gcjDGt8TVhQYyQbJZg6wbszWN+ha06Su0WS8jTwaqsCilJDyvI69ZOy2xJysxOYas=",
"name": "Carlos Garc\u00eda Aparicio",
"oid": "43fa9432-6f2c-4298-8219-1305c911c7f0",
"preferred_username": "carlos.garcia@flowable.com",
"puid": "10033FFFACF6551C",
"rh": "0.ASEA6s604QUTHEKeqPckpqg115V3sATbjRpGu-4C-eG_e0YhAD4.",
"sub": "hOHnYP1huZEUv2McMHm8f177Q_hG_UgXY8tLy5dAqLE",
"tid": "e1b4ceea-1305-421c-9ea8-f724a6a835d7",
"uti": "etstUW59LkaBvLDfDRwgAA",
"ver": "2.0"
}
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
raise ex
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/profile/custom.py", line 154, in login
use_cert_sn_issuer=use_cert_sn_issuer)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/_profile.py", line 153, in login
user_identity = identity.login_with_device_code(scopes=scopes, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/auth/identity.py", line 132, in login_with_device_code
result = self.msal_app.acquire_token_by_device_flow(flow, **kwargs) # By default it will block
File "/usr/lib64/az/lib/python3.6/site-packages/msal/application.py", line 1561, in acquire_token_by_device_flow
**kwargs))
File "/usr/lib64/az/lib/python3.6/site-packages/msal/oauth2cli/oauth2.py", line 384, in obtain_token_by_device_flow
result = self._obtain_token_by_device_flow(flow, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/msal/oauth2cli/oauth2.py", line 347, in _obtain_token_by_device_flow
self.DEVICE_FLOW["GRANT_TYPE"], data=data, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/msal/oauth2cli/oidc.py", line 115, in _obtain_token
ret = super(Client, self)._obtain_token(grant_type, *args, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/msal/oauth2cli/oauth2.py", line 777, in _obtain_token
"response": _resp, "params": params, "data": _data,
File "/usr/lib64/az/lib/python3.6/site-packages/msal/application.py", line 524, in <lambda>
event, environment=authority.instance)),
File "/usr/lib64/az/lib/python3.6/site-packages/msal/token_cache.py", line 307, in add
super(SerializableTokenCache, self).add(event, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/msal/token_cache.py", line 113, in add
return self.__add(event, now=now)
File "/usr/lib64/az/lib/python3.6/site-packages/msal/token_cache.py", line 153, in __add
if id_token else {})
File "/usr/lib64/az/lib/python3.6/site-packages/msal/oauth2cli/oidc.py", line 77, in decode_id_token
err, _now, json.dumps(decoded, indent=2)))
RuntimeError: 0. The ID token is not yet valid. Current epoch = 1637158952. The id_token was: {
"aud": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"iss": "https://login.microsoftonline.com/e1b4ceea-1305-421c-9ea8-f724a6a835d7/v2.0",
"iat": 1637159134,
"nbf": 1637159134,
"exp": 1637163034,
"aio": "AVQAq/8TAAAAaKquAsSjlP+y4x0LEAR4fCQ5S1UqNp/BIYiYBn8EQ+gcjDGt8TVhQYyQbJZg6wbszWN+ha06Su0WS8jTwaqsCilJDyvI69ZOy2xJysxOYas=",
"name": "Carlos Garc\u00eda Aparicio",
"oid": "43fa9432-6f2c-4298-8219-1305c911c7f0",
"preferred_username": "carlos.garcia@flowable.com",
"puid": "10033FFFACF6551C",
"rh": "0.ASEA6s604QUTHEKeqPckpqg115V3sATbjRpGu-4C-eG_e0YhAD4.",
"sub": "hOHnYP1huZEUv2McMHm8f177Q_hG_UgXY8tLy5dAqLE",
"tid": "e1b4ceea-1305-421c-9ea8-f724a6a835d7",
"uti": "etstUW59LkaBvLDfDRwgAA",
"ver": "2.0"
}
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az login
Expected Behavior
Environment Summary
Linux-5.5.1-1.el7.elrepo.x86_64-x86_64-with-centos-7.9.2009-Core, CentOS Linux 7 (Core)
Python 3.6.8
Installer: RPM
azure-cli 2.30.0
Extensions:
ssh 0.1.8
Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountMSALcommon issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.