I am quite new to WCF and I am trying to setup services and have received two different advice:
- Use a the built in authentication service with a membership provider (http://msdn.microsoft.com/en-us/library/bb398990(VS.100).aspx) (http://stackoverflow.com/questions/2077854/custom-usernamepasswordvalidator-with-silverlight-3-0).
- Use a custom service authorization manager with a custom username validator and ”TransportWithMessageCredential” (http://msdn.microsoft.com/en-us/library/ms729794(VS.100).aspx) (http://stackoverflow.com/questions/2064191/architechture-of-service-application-in-wcf)
The difference I can see is in method two, the users credentials is verified at every call to the services and I don't have to keep a session state on the server, which I like.
Am I misunderstanding the concepts and the two solve different problems?
Can someone please help me understand these two and when to use each?