Support credentials for django json rpc

Support credentials for django json rpc