Janrain (RPX) 基本设置
我可能很笨,但我似乎无法让 Janrain(以前的 RPX)工作。我已完成以下操作:
- 注册并按照他们需要您填写的内容进行操作。
- 下载示例代码 (c#)
- 在我的令牌站点 (mydomain.com/user/login),我在控制器中添加了以下调用:
var res = new Rpx("{myapi}", "http:// {mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login");
- 确保本地主机已列入白名单
每当我尝试调用时
var res = new Rpx("{myapi}", "http://{mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login")
,我都会收到错误消息,表明数据在以下行:
doc.Load(dataStream);
有谁知道我可能会丢失什么?
I might be thickheaded but I can't seem to get the Janrain (former RPX) to work. I have done the following:
- Signed up and followed the stuff they need you to fill out.
- Download the sample code (c#)
- At my token site (mydomain.com/user/login) I have in the controller added the following call:
var res = new Rpx("{myapi}", "http://{mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login");
- Made sure that localhost is whitelisted
Whenever I try to call
var res = new Rpx("{myapi}", "http://{mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login")
I receive the error that the data is invalid on the following line:
doc.Load(dataStream);
Does anyone know what I might be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案。
我误解了令牌,因为他们使用令牌作为与它将进行回发的 url 相同的术语。我可以通过以下方式让它工作:
I found the answer.
I misunderstood the token, since they use token as the same term as the url it will do a postback to. I could get it to work by the following: