Announcing RPXLib for .Net

I have long been convinced of the worth of OpenId. I am unsure if it is the ultimate solution - but for now it is definitely the best solution we have (imho). When I heard about RPX, a new integration service from JanRain, my interest sky-rocketed. Previously, the thought of manually integrating into the current OpenId world seemed intimidating to me. RPX solves that problem - hands down.

And what does a developer do when confronted by an open API? He writes a custom wrapper in his language of choice - that's what he does.

So this post announces RPXLib, now available on Google Code. It is a .Net wrapper meant to take some of the pain out of RPX integration by handling most of the boring stuff for you. It presents a simplified service API and returns strongly-typed response objects for you to play with. Be sure to take a peek at the documentation wiki.

It is worth noting that this works well on my machine - but I am very interested to hear from others about the benefit that this provides (or lack of benefits, even more importantly). I figure it takes about 2-3 minutes to read the doco and about another 10 minutes to integrate this into your application. Your mileage may vary and I would love to hear your experiences.

November 24, 2008 15:18 by steven.burman
E-mail | Permalink | Comments (10) | Comment RSSRSS comment feed

Related posts

Comments

January 2. 2009 05:34

Willie Tilton

Tried downloading and playing with it but the sample you keep referencing to take a look at on the google code site cannot be found. Am I missing something? It doesn't seem to tough, but have just spent the past day trying to get OpenID going with no luck, so trying to take the easy spoon fed way out. Tong

Willie Tilton

January 2. 2009 05:50

Willie

Got the sample mvc site from the source, I'll check that out and see what I can cook up.

Willie

January 2. 2009 06:32

Willie


public class RpxApiSettings : IRPXApiSettings
{
public string ApiKey { get { return "<mykey>"; } }
public string ApiBaseUrl { get { return "https://rpxnow.com/api/v2/auth_info"; } }
public IWebProxy WebProxy { get { return null; } }
}

Does ApiBaseURl look right?

RPXAuthenticationDetails details = _rpxService.GetAuthenticationDetails(token);
ends up with "The remote server returned an error: (404) Not Found." so I'm thinking no...

Willie

January 2. 2009 06:45

Willie

Got that sorted the correct one is:

public string ApiBaseUrl { get { return "https://rpxnow.com/api/v2/"; } }

And wouldn't you know it I actually got back an Email and Identifier! Things are looking way up! Thanks for the lib!

Willie

January 2. 2009 08:02

Willie

RPXAuthenticationDetails PrefferedUsername is spelled wrong. This will not allow you to get the UserName/NickName correctly. Not sure if you accept patches, but it's pretty simple I believe:



public string PreferedUsername
{
get { return GetPropertyValue("preferedUsername"); }
}

Willie

January 2. 2009 08:09

Willie

Correction, would be nice if I spelled the misspelling right:


public string PreferredUsername
{
get { return GetPropertyValue("preferredUsername"); }
}

Willie

January 2. 2009 11:24

steven.burman

Damn. I knew I would have missed something like that - well spotted!

I have put a 0.0.2 release on the site as well as committing the source code changes.

If you are going to be using this in a real-world implementation I am more than happy to add you as a committer. Realistically there is probably a couple more of those types of bugs in the system and I would hate for you to have to wait for me for every fix.

I have something in the pipeline that may use it publicly but that is looking a fair way off at the moment. So in reality the project hasn't been real-world tested as much as I would have liked.

steven.burman

January 2. 2009 11:52

Willie

Sure sounds cool to me, I'm going to put it into an upcoming website that I'm working on in the off hours, so who knows when it will go live. Today was a "get rid of OpenId and try something else day" which led me here. Everything seems to be working well so far but if I find anything else I'll pitch in, not a problem. I'm not sure if you need anything else, but my google username is rballonline.

Willie

February 21. 2009 10:56

Ben

I'm not sure if it is just me, but I'm struggling to get the extended properties back. I am using the overloaded GetAuthenticationDetails method, and in my RPXNow site settings I have all registration properties ticked. I am using your RPXLib with a ASP.NET 2.0 Web Application Project. Using the RPXNow test tool, and posting back to my token url, I find that it DOES return the extended properties correctly. Is this a clash between a 3.5 library and a 2.0 web application? I can't think of anything else.

Suggestions welcome!!

Ben

April 21. 2009 20:58

nachid

I am struggling for one day try to understand why I am getting this error
The remote server returned an error: (404) Not Found.
I got this when I call
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

inside the ApiCall function
I am using Visual Studio 2008 on Vista
I am quite sure it is relatd to security but I don't know where to check
I gave up
Any help is more than welcome

nachid

Comments are closed