Adir
Adir

Reputation: 1423

Securing REST-based WCF Service

I'm looking for a way to secure my WCF service using http and simple username-password authentication, without using certificates.
The service is consumed by an Android device so I can't use the .NET Proxy generated classes.
I've read about basic HTTP authentication but haven't found an easy way to implement this method.

Upvotes: 2

Views: 990

Answers (2)

Adir
Adir

Reputation: 1423

I've found ASP.NET Web API, seems like a better solution for REST-based Services than WCF.

Upvotes: -1

SliverNinja - MSFT
SliverNinja - MSFT

Reputation: 31651

Have you tried using the MSDN custom Username/Password validator for WCF? It relies on the serviceCredentials configuration and implementing a UsernamePasswordValidator.

Upvotes: 0

Related Questions