启用 MFA 后连接 Microsoft Azure AD 时,我遇到如下错误。在此之前它已连接。今天登录时,要求我在手机(Microsoft Authenticator APP)中启用此安全功能。除非添加此功能,否则我无法访问 Microsoft 365 中的 MS Outlook。
我正在使用WSO2 Outlook Connector与 Microsoft Graph API 建立连接
错误:
"error":"interaction_required","error_description":"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0ff1-ce00-000000000000
Run Code Online (Sandbox Code Playgroud) wso2 azure-active-directory multi-factor-authentication microsoft-graph-api
我的输入日期为"2020-10-31T00:00:00Z"。我想解析这个日期以获得长毫秒。 注意:转换后的毫秒数应为悉尼时间(即 GMT+11)。
供参考,
public static long RegoExpiryDateFormatter(String regoExpiryDate)
{
long epoch = 0;
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
df.setTimeZone(TimeZone.getTimeZone("GMT+11"));
Date date;
try {
date = df.parse(regoExpiryDate);
epoch = date.getTime();
} catch (ParseException e) {
System.out.println("Exception is:" + e.getMessage());
e.printStackTrace();
}
System.out.println("Converted regoExpiryDate Timestamp*************** " + epoch);
return epoch;
}
Run Code Online (Sandbox Code Playgroud)
输出: 1604062800000使用Epoch Converter将日期设为30/10/2019,但在输入中我将第 31 天作为日期传递。任何人都可以澄清这一点吗?