【前后台分离模式下,使用OAuth Token方式认证】

refer: http://nils-blum-oeste.net/angularjs-send-auth-token-with-every–request/

参考资料:

django-rest-framework-authentication:http://www.django-rest-framework.org/api-guide/authentication/

django-oauth-toolkit-Django Rest Framework-Getting started:https://django-oauth-toolkit.readthedocs.io/en/latest/rest-framework/getting_started.html

RESTful API User Authentication with Node.js and AngularJS – Part 1/2: Server:https://devdactic.com/restful-api-user-authentication-1/

AngularJS: Send auth token with every request:http://chenpeng.info/html/2947

Angular中在前后端分离模式下实现权限控制 – 基于RBAC:http://chenpeng.info/html/3287

 

原文地址:https://www.cnblogs.com/junneyang/p/5633535.html