Authenticated WCF Service for MonoTouch, Mono for Android and WP7

I am writing a phone application where the end user must have access to their private messages and other personal content. Does anyone have any good ideas on how to create such a service if I use Soap or Rest, should I just send a username / password with every request or?

What is the best choice for a service that I would like to access from all three platforms, and which returns only information related to the authentication user.

+6
source share
2 answers

As a recommended alternative to WCF, which is at least worth a look at ServiceStack , the open REST Framework web service, is well suited for use in a mobile application and supports Mono platforms. It also has built-in support for user authentication . At the very least, it offers a JSON serializer that works very well .

There is a Wiki for ServiceStack here .

+4
source

I don't know what MonoTouch / MonoDroid support is, but WCF supports secure services without manually adding a username / password to each request (this is true, but includes it in the headers).

See this blog post for a great starting point for using WPF Custom User / Password Validator: http://blogs.msdn.com/b/pedram/archive/2007/10/05/wcf-authentication-custom-username-and -password-validator.aspx

0
source

Source: https://habr.com/ru/post/908174/


All Articles