Open RIA Services User Support OpenRIA for non-SL clients  Viewed 18219 time(s), 4 post(s)., 5/25/2015 5:09:48 PM - by ankuranand

ankuranand 5/25/2015 5:09:49 PM

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 (
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?


This content has not been rated yet. 
35 Reputation 3 Total posts
bengutt 7/31/2015 10:45:12 AM

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.


This content has not been rated yet. 
80 Reputation 9 Total posts
Daniel-Svensson 9/1/2015 5:00:53 PM

@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.

This content has not been rated yet. 
338 Reputation 44 Total posts
Daniel-Svensson 2/7/2016 2:22:53 PM

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.

This content has not been rated yet. 
338 Reputation 44 Total posts