C# Oauth启动在Magento 1站点中失败
我正在使用Nick Vane的Magento REST API,Oauth身份验证在一个客户端上工作,在另一个客户端上失败 我曾尝试重置消费者信息、客户端密钥和密码,但在第二个站点上仍然失败C# Oauth启动在Magento 1站点中失败,c#,oauth,magento-1.9,C#,Oauth,Magento 1.9,我正在使用Nick Vane的Magento REST API,Oauth身份验证在一个客户端上工作,在另一个客户端上失败 我曾尝试重置消费者信息、客户端密钥和密码,但在第二个站点上仍然失败 var client = new MagentoApi(); System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; try { if (AdminURLPart.Lengt
var client = new MagentoApi();
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
try
{
if (AdminURLPart.Length > 0)
{
client.SetCustomAdminUrlPart(AdminURLPart);
}
client.Initialize(URL, ConsumerKey, ConsumerSecret);
client.AuthenticateAdmin(MagentoUser, MagentoPassword);
}
catch (Exception e1)
{
BCCUtils.Logger("Authentication Error: " + e1.Message, true, CurrentModule);
return -1;
}
消费者密钥“xxxxxxx”在“”处的oauth出现问题。消息:“oauth\u problem=parameter\u缺席&oauth\u parameters\u缺席=oauth\u consumer\u key”我们通过从应用程序中使用的URL中删除“www.”来解决此问题,这可能对社区有所帮助。一旦我们这样做了,Nick Vane项目中的MagentoAPI身份验证功能就正常工作了。只有一个客户的情况是这样的,我们在验证时遇到了困难