Azure msal ClientAuthError 帮助@azure/msal-node
Azure msal ClientAuthError Help @azure/msal-node
我正在尝试按照 Microsoft active-directory
的教程进行操作
在代码中输入客户端 ID 和密码并 运行 代码后,它会将我带到登录页面,在那里我使用凭据登录,但出现以下错误:
"errorCode": "request_cannot_be_made",
"errorMessage": "Token request cannot be made without authorization code or refresh token.",
"subError": "",
"name": "ClientAuthError"
有人知道这是怎么回事吗?
示例代码运行良好:https://github.com/Azure-Samples/ms-identity-node/
使用auth code flow, we need to get authorization code with getAuthCodeUrl()
first, then obtain the access token with the authorization code by acquireTokenByCode()
时。您可能会错过获取授权码,请检查您的授权码。
备注:
将支持的帐户类型设置为“任何组织目录中的帐户和个人 Microsoft 帐户”。 如果不是,请使用您的租户 ID 更改 'common' 权限。
示例代码中的 redirectUri 需要与门户中的 Redirect URI 相同。
我正在尝试按照 Microsoft active-directory
的教程进行操作在代码中输入客户端 ID 和密码并 运行 代码后,它会将我带到登录页面,在那里我使用凭据登录,但出现以下错误:
"errorCode": "request_cannot_be_made",
"errorMessage": "Token request cannot be made without authorization code or refresh token.",
"subError": "",
"name": "ClientAuthError"
有人知道这是怎么回事吗?
示例代码运行良好:https://github.com/Azure-Samples/ms-identity-node/
使用auth code flow, we need to get authorization code with getAuthCodeUrl()
first, then obtain the access token with the authorization code by acquireTokenByCode()
时。您可能会错过获取授权码,请检查您的授权码。
备注:
将支持的帐户类型设置为“任何组织目录中的帐户和个人 Microsoft 帐户”。 如果不是,请使用您的租户 ID 更改 'common' 权限。
示例代码中的 redirectUri 需要与门户中的 Redirect URI 相同。