How to secure my simple WCF
service using FormsAuthentication
concept ?
The ServiceContract
looks similar to this:
[ServiceContract]
public interface MovieDb
{
[OperationContract]
string GetData(int value);
[OperationContract]
string Login(int value);
[OperationContract]
string Logout(int value);
}
I have used FormsAuthentication
in my MVC 4 Application for authentication and authorization.
All I could think of is like adding Authorize
Filter attribute at the top of the ServiceContract
class.
Any pointers in Simple terms in much appreciated. Thanks.