Last post Apr 11, 2017 10:31 PM by mgebhard
Apr 08, 2017 02:52 PM|SkyDriving|LINK
Hi I m a newbie in Web Api.
say I have create an asp.net MVC app to register a user with username and password.
Which web service I should use for iOS/Android/Xamarin user to login?
I m a bit confused as to how diff mobile user consume the web Api web service to login. Is Web Api Web service is REST web service?
There is Web API web service , can you show me an example or reference to follow on how Mobile user consume the Web api web service?
Apr 08, 2017 06:34 PM|Khanna Gaurav|LINK
Your Web API can be consumed by website running in desktop or mobile. You can refer following link to learn managing of login from Web API
Apr 10, 2017 02:35 AM|Chris Zhao|LINK
Using ASP.NET Web API, you can program for HTTP verbs such as GET, POST, PUT and DELETE. Once created you can consume the Web API in a wide range of clients including web applications, desktop applications and mobile applications. You may consider
reading Introduction to ASP.NET Web API before going any further.
Web service APIs that adhere to REST are called RESTful APIs, and are defined using:
A base URI.
HTTP methods, such as GET, POST, PUT, PATCH, or DELETE.
HttpClient is a modern HTTP client for .NET applications. It can be used to consume functionality exposed over HTTP. For example, a functionality exposed by an ASP.NET Web API can be consumed in a desktop application using HttpClient. Using HttpClient you
can send requests and receive responses using standard HTTP verbs such as GET, POST, PUT and DELETE.
#ASP.NET Web API 2 – Web Services for Websites, Modern Apps, and Mobile Apps
#Introduction to Web Services
Apr 11, 2017 01:21 PM|SkyDriving|LINK
Now I know what is Web Api.
I am confused over authentication using Asp.net MVC.
In my previous experience, I used asp.net ( no MVC) , in the code-behind I can validate the username and password against the User-database and I dont use Authentication.
Can you provide me a sample of login webservice consume by Mobile Client as well as using Asp.net MVC itself to follow to further strengthen my understanding?
To login Asp.net MVC, I dont use Web service, I use Brower right?
Apr 11, 2017 10:31 PM|mgebhard|LINK
Authentication is the process of exchanging a valid username and password for a token. Form this point on the client passes the token to access server resources. There are several ways to perform authentication and the method you choose is dependent on
what you're trying to secure.
Anyway, there is a lot of information on the subject. Start here and branch off...