为什么 aws-okta add 失败?

为什么 aws-okta add 失败?

我尝试aws-okta add在 WSL2 上运行,但失败了,因为org.freedesktop.DBus.Properties没有定义:

$ aws-okta --debug add
Okta organization: company

Okta region ([us], emea, preview):

Okta domain [company.okta.com]:

Okta username: username

DEBU[0008] Keyring key: okta-creds
Okta password:

DEBU[0014] domain: company.okta.com
DEBU[0014] Step: 1
DEBU[0016] Step: 2
INFO[0016] Requesting MFA. Please complete two-factor authentication with your second device
DEBU[0016] MFAConfig: {  phone1}
INFO[0016] Select a MFA from the following list
INFO[0016] 0: OKTA (token:software:totp)
INFO[0016] 1: OKTA (sms)
INFO[0016] 2: OKTA (push)
Select MFA method: 2

DEBU[0018] Okta Factor Provider: OKTA
DEBU[0018] Okta Factor ID: xxxxxxxxxxxxxxx
DEBU[0018] Okta Factor Type: push
DEBU[0053] Failed to add user to keyring: No such interface “org.freedesktop.DBus.Properties” on object at path /
Failed to set credentials in your keyring

答案1

解决方案如下:

$ dbus-launch

打开启动应用程序在主机 Windows 机器上,keyring如果有人想要添加密钥,就会弹出一个新窗口。

相关内容