5 ms·
It would be great if you could share your insights into handling authentication with an API. I am still yet to find a perfect way to do it.
by tharshan09 13y ago
It would be great if you could share your insights into handling authentication with an API. I am still yet to find a perfect way to do it.
- johne20 13y agoI am not certain if you are referring authenticating to an API via Angular or just API auth in general, but I can touch on both. atm, we just use traditional rails authentication since our angular app is the only consumer of the api. But, that will be a bridge we need to cross soon and will post our findings. I would start by looking at how other market leaders do it, eg Stripe et al. As far as connecting an angular app to backend api, I would look at this http://www.frederiknakstad.com/authentication-in-single-page-applications-with-angular-js/ http://www.frederiknakstad.com/authentication-in-single-page...
- tharshan09 13y agoYes I am referring to Authentication via Social Auth like Facebook and normal email/pass auth as well. But I am using Django as the backend, not node like most of these tutorials are using.