asp.net-mvcjanrainrpxnowrpx

Janrain (RPX) basic setup


I might be thickheaded but I can't seem to get the Janrain (former RPX) to work. I have done the following:

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);

alt text

Does anyone know what I might be missing?


Solution

  • 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:

       var token = Request.Form["token"];
       var res = new Rpx("xxx", "http://{mysiteid}.rpxnow.com").AuthInfo(token);