django-restframework_ certification

The basic certification process

 

 Package request for initialization and

 

 From the configuration file settings take

 

 Specify a global verification

 

 Class verification, the class name is not required, but there must be two methods, authenticate authentication, the other is empty

 

 

 

Execution authenticate the scene

 

 

This method can be used for authentication based single view provided

 

 

 

Guess you like

Origin www.cnblogs.com/zhangzixian/p/11563536.html