星期三, 6月 04, 2014

[AngularJS] 如何在Angular實作使用者登入

如何使用AngularJS跟使用者驗證與授權的REST API整合,
可以參考以下整理的資料。

以Token-based來整合

https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/



以角色區分存取權限的範例(超完整XD)


http://frederiknakstad.com/2013/01/21/authentication-in-single-page-applications-with-angular-js/

Demo size
http://angular-client-side-auth.herokuapp.com/admin/

http://www.frederiknakstad.com/2014/02/09/ui-router-in-angular-client-side-auth/

以SessionID驗證方式的範例(附簡報)

https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec

https://docs.google.com/presentation/d/1dceqxHVLP251cOQvBh3gOrAO_G2c6W9lQ6J2JCaO1d0/edit#slide=id.g124aecc29_00


單純控制Authentication無authorization

https://coderwall.com/p/f6brkg
http://www.kdelemme.com/2014/03/09/authentication-with-angularjs-and-a-node-js-rest-api/


http://nadeemkhedr.wordpress.com/2013/11/25/how-to-do-authorization-and-role-based-permissions-in-angularjs/

沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails