.NET Web API Application ID and User Authentication

Possible duplicate:
User Authentication in ASP.NET Web Interface

Working on creating a web API for some of our services and finding the best way to provide it. We would like to release an API key for any application / developers wishing to use the API. In addition, some API calls must require authentication.

As an example, service call # 1 performs a basic get. For this call, all it takes is a token corresponding to the caller. Service call # 2 contains secret information. This call requires a token, and in addition the user associated with the put request must be authenticated.

Are there any examples that describe this type of implementation? I've spent a lot of time browsing the internet and what I've found seems to provide token or user based authentication. Nothing I've seen does.


This has been noted as a possible duplication, and that's why I see it differently ...

I am asking how to enable the BOTH token to authenticate the web application as a consumer, and also how to authenticate the user of the web application using our services. The link provided in a possible duplicate only explains how to implement single layer authentication (Forms or Windows Authentication). It does not provide information about the execution of both the application token and user authentication.

+3


source to share





All Articles