Jun 27, 2016 09:08 PM|halhunt|LINK
Thanks for the response Fei but apparently my post is confusing based on your response. Neither of the links you provided appear to even use authentication in the web API. This post is all about OAuth authentication (perhaps a badly titled post :-/).
Again, the solution I built with the SPA template works perfectly fine so I don't need another tutorial. I need to be able to call the Web API that I built using the SPA template from another type of client. By another type of client I mean a client other
be very different from the OAuth authentication flow in a typical ASP.NET Web API 2 template. So is it possible to call my SPA web API (that requires authentication) from, for example, a C# solution? If so what does the OAuth authentication flow look like
because calling OWIN's OAuth middleware token endpoint to get an access token like normal isn't working (as stated above).
I hope this makes more sense. BTW my solution was created using the older MVC5 framework not the new xplat MVC6/ASP.NET Core framework.
After doing some more research and comparing the ASP.NET SPA and MVC Web API 2 templates the Statup.Auth.cs and ApplicationOAuthProvider.cs files in those templates are very different.
Is it possible to get both browser based and server based OAuth flows working together with the same ApplicationOAuthProvider?