How to send auth key in RPC call mjs

#1

Hi trying little help here,
How to send auth in RPC call (secure RPC)

#2

You will have to implement the digest authentication in your code.

#3

Hi i have done that ,
Set auth file in RPC.auth , domain in RPC.auth_domain and acl json in RPC.acl_file

But it still doesn’t work, it works when i call from pc using curl or mos, but doesn’t work with RPC call(RPC.LOCAL)

#4

With debug level 3 ,it shows error 401, there’s is no error when called from pc

#5

You have to implement Digest access authentication
The steps are described here

#6

Done the same thing, but we cannot call rpc locally, beacause the code in mjs, i think its impossible to pass auth in RPC frame in mjs, i think i have to shift to c

#7

Implement it in C and ffi to mJS.