Can you please advise what is the best way to use AngularJS Token Authentication with Abp Web API layer? I am using ABP in the SPA application with AngularJS and thinking about using Owin middleware and ASP.NET Identity for authentication and authorization. It has a token service, which can be used in the client side (angular) in place of authentication cookie. However it requires setting up an Owin authentication for the Wep Api layer, which I think will force me to implement my Web Api controller "by hand" rather than using DynamicAPIProxy? The solution I am looking into is described here: <a class="postlink" href="http://bitoftech.net/2014/06/09/angularjs-token-authentication-using-asp-net-web-api-2-owin-asp-net-identity/">http://bitoftech.net/2014/06/09/angular ... -identity/</a>
Is there any other way I can implement authentication/authorization in my SPA in angularJS by using Module Zero services? Is there a feature that can provide my client with an authentication token or cookie that can be exchanged/validated between client and server in a request header?
Kind Regards, TS.
Hi, I'm working on similar solution right now. I followed this tutorial: <a class="postlink" href="http://bitoftech.net/2014/12/15/secure-asp-net-web-api-using-api-key-authentication-hmac-authentication/">http://bitoftech.net/2014/12/15/secure- ... ntication/</a>, maybe will help you. I don't have this fully implemented yet, but it looks much simpler than Bearer token authentication.