I would like to know if its possible at all for a website developed using asp.net , and, if so, could someone please give me a few pointers on how to do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are different ways you can do this .If you are doing it with ASP.NET I would suggest you web-services. People using API can pass username and encoded password over network .Share a secret key with the client for encoding passwords.
This might help http://blogs.sitepoint.com/single-sign-web-service-asp-net/ .
By passing a username and a hashed password of the user to method u can authenticate. The method queries the database to see if a row exists that contains both the username and the password. If a row is found, the user is authenticated, return true. Otherwise, we’ve been given incorrect credentials, and a false is returned.
If you need to return a stream you can build the stream by reading some file Using File.IO StreamReader and return it as a response.