我试图通过要求AppCenter WF1.0。我的日志在这里:
http://pastebin.com/jqqLWury
我注意到我的OauthResponse页面被访问了两次:
2/8/2013 2:40:22 OauthResponse于2013年4月8日被访问2:40:22下午4/8/2013 2:40:26 OauthResponse于2013年4月8:26访问
我上面发布的日志似乎也击中了我的页面两次。
我试着在https://appcenter.intuit.com/TryBuy/IA/MYID登录。我收到一个页面要求连接到我的应用程序。当我连接并单击授权时,我被发送到myapp.com/openid,然后重定向到myapp.com/home/index。我收到一个访问令牌、一个访问令牌秘密和一个领域。当我试图使用这些凭据进行身份验证时,它失败了。
我注意到这个应用程序从未被添加到我公司的应用程序列表中。
我正在使用。在我的开发区域,这些设置正确吗?
应用网址: myapp.com/openid
断开登陆网址:myapp.com/断开
管理用户网址: myapp.com/OauthResponse
OpenId网址: https://www.myapp.com/openid
主机名域: myapp.com
我正在使用我的开发用户密钥和我的开发用户密钥秘密。我怎么会得到糟糕的证书?
以下是我的错误:
未经授权的Intuit.Ipp.Exception.IdsExceptionManager.HandleException(IdsException Intuit.Ipp.Core.ServiceContext.GetQBOPartitionedURL(String qboServiceEndpoint)在Intuit.Ipp.Core.ServiceContext.GetBaseURL() at Intuit.Ipp.Core.ServiceContext..ctor(IRequestValidator requestValidator,String
这是我的代码:
string Authenticate()
{
string accessToken = HttpContext.Current.Session["accessToken"].ToString();
string accessTokenSecret = HttpContext.Current.Session["accessTokenSecret"].ToString();
string companyID = HttpContext.Current.Session["realm"].ToString();
// now auth to IA
OAuthRequestValidator oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, ConfigurationManager.AppSettings["consumerKey"].ToString(), ConfigurationManager.AppSettings["consumerSecret"].ToString());
ServiceContext context = new ServiceContext(oauthValidator, accessToken, companyID, IntuitServicesType.QBO);
dataServices = new DataServices(context);
return "OK";
}如果我通过我的网站登录,而不使用该URL,一切正常。
发布于 2013-04-08 22:09:10
看起来我的应用程序URL在应用程序中心是不正确的。
在我的例子中,应用程序URL应该是http://www.cloudcartconnector.com/OpenId,而我的OpenIdUrl应该是https://www.cloudcartconnector.com/DirectConnectToIntuit
https://stackoverflow.com/questions/15852871
复制相似问题