MVC Web API Oauth and Client in separate projects RRS feed

  • Question

  • User-1939321229 posted

    I am trying to develop a Web API project protected by OAuth (Google, Twitter).  I am trying to find a sample where the Client and the Resource Server are separate projects and authentication happens through a thirday party authorization server (Google for example).  The visual studio projects that get generated all have the code in one project.  Can someone point me in the proper direction.

    I am using the HttpClient class and what I am looking for is

    1. How to send the original request to the resource server.
    2. Interpret the result and then redirect to the authorization server.
    3. Authorize and pass the result back to the resource server and call the Web API Method.

    Monday, April 7, 2014 6:49 AM