I am developing a rest WCF web services in which my client will call the service using HTTP. User will be authenticated by using Username and Password (Basic Authentication) I have the following questions in my mind.
1. How can I secure my Username and Password? While searching in the internet, many suggested to use HTTPS/OAUTH/OPENID. I felt the following are the conflicts of using any of this
- OAUTH/OPENID-> This requires the 3rd party to authenticate my user. What if I store the user details only in my system?? Is there is anyway where I can implement oAuth in such a functionality? Based on my assumption. OAuth uses Token to authenticate the user, How Middle Man attack could be avoided here. Say what if the attacker gains the token or What if he gains the whole URL- Can you made the request to the server?
- HTTPS: Based on many reviews in the Internet, this is the best. I am pretty sure HTTPS will secure the data transfer between the client and server, But I wanted to know does it secure the URL as well (Where we store our username and password).??
.