AngularJS + Jersey RESTful backend: Authentication & Authorization -
i'm building angularjs web-app uses jersey restful ws provider. want users able login , perform operations. should use oauth this? i've seen people mentioning oauth lot in context of offering third parties opportunity access data in backend belongs users (e.g facebook login), in case me, frontend making calls backend.
before, used jsf , cdi, decided switch angular, backend , frontend not "glued-together" used be. should use oauth use case? there better way it?
if want have loosely coupled api might used other frontends and/or services oauth way go in opinion. can save lot of cross domain headaches (ie9 won't allow cookies, authentication etc. included in cross domain requests instance).
if you're absolutely sure it's going own frontend, i'd consider placing api in same web application, solve authentication using same frontend.
Comments
Post a Comment