OoO: Demo Solution
So it took me a little more than the intial couple of days I estimated, but you can finally download the VS2010 Solution for my OoO (aka OpenID, oData and OAuth together) post.
Please don’t take this as gospel or even an example of good practices.
Fire up the website, then fire up the command line client, which will redirect you to the Login page which requires OpenID credentials. There isn’t a fancy OpenID Relaying Party selector, you’ll just have to type it in yourself. That will then let you to generate a verifier token, which lets the CLI client to access the OData service.
This example ignores the scope values being passed in.
Would I use oData?
Yes and no. I’d use oData if I just wanted people to have LINQ access to various resources – but probably resources I wouldn’t try and protect. Why not? While oData lets you define service methods which let you perform more advanced operations and still return the oData format it doesn’t expose these service methods to the WCF Proxy Client (ie, what is generated from Add Service Reference..), but instead requires you to use magic strings. That is, something like:
DataServiceQuery<Product> q = ctx.CreateQuery<Product>("GetProducts")
.AddQueryOption("category", "Boats") ;
List<Product> products = q.Execute().ToList();
WCF Data Services lost me on the magic strings bit. I’d probably go for a plain ole WCF Service with SOAP/JSON endpoints if I needed methods instead of just the data.

[...] This post was mentioned on Twitter by Paul Jenkins, Bugra Ayan. Bugra Ayan said: OoO: Demo Solution: So it took me a little more than the intial couple of days I estimated, but you can finally do… http://bit.ly/dptQsa [...]