I am porting my silverlight application to Xamarin.Forms. Most of the key modules have been ported over. For data access, I am using OpenRIA but I can't seem to find a way to authenticate the users from the mobile app.
1. Since its a mobile platform, I do not get access to FormsAuthentication.
2. Cookie management is also an issue but that potentially be resolved using this solution suggested by Kyle McClellan (http://blogs.msdn.com/b/kylemc/archive/2010/05/14/ria-services-authentication-out-of-browser.aspx).
3. Xamarin seems to support OAuth but how do I use that to set the Authentication on Webcontext or AuthorizationContext on the DomainService?
Has anyone tried using OpenRIA for mobile clients/Universal apps?
I can't offer any help with this, as we are still not yet ready to do the research on how to move from SL.
However I'd love to know how you got on with this, as this is one of the approaches we may wish to look at.
@ankuranand did you try to port over the Domainservices.Client.Web assembly to xamarin (it is in that assembly FomsAuthentication is implemented)?
If it supoprt WCF REST then it should be quite straightforward.
As for platforms where WCF REST is not availible I have made some progress on a replacement using HttpClient, and hopefully a a prerelease version can be released within the next month.
I first beta release of 4.5.0 has been pushed to nuget and a link to a my portable replacement to the WCF client can be found in the description
Note that this is just a first step: It works with Win8 applications so hopefully the step to UWP should not be that big and help with the portable support is always appreciated.