What is the best (or at least one that works) option to secure a IIS hosted REST WCF service that will be called by javascript clients?
The service that I have is a REST service that receives GETs and POSTs from the clients and it's working fine, through http and https.
I've been trying to implement authentication, and I have a database with my own structure for users and roles and the such (so I want to avoid Windows authentication) I've been trying different things but I can't get anything to work.
Last thing I've tried is Basic Authentication (Transport) with a ServiceAuthorizationManager and UserName Auth (Message) with a custom validator.
I don't know if I can use the custom validator (inheriting from System.IdentityModel.Selectors.UserNamePasswordValidator) with Basic authentication, or if I can add UserName authentication credentials in the http(s) REST requests (maybe it needs to be a SOAP service?).
Also I would like to use something like a custom RoleProvider to control method access based on user groups /roles .
Thanks.