hacksong / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

Allow extraParams to be specified, like extraHeaders #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Zabbix API requires an extra param called auth. Auth is the authorization token 
that needs to be sent with every call that requires authentication. 
ex:
{
"jsonrpc":"2.0",
"method":"application.create",
"params":[{
      "name": "SNMP Items",
      "hostid": "100100000010048",
}],

"auth":"038e1d7b1735c6a5436ee9eae095879e",
"id":2

}

It is impossible to send the auth token without overriding the full 
writeRequest method.

What version of the product are you using? 
0.19

On what operating system?
Linux/Ubuntu

Fore more information, refer to the group discussion here:
http://groups.google.com/group/jsonrpc4j/browse_thread/thread/3b05d39638389442

Original issue reported on code.google.com by subp...@gmail.com on 23 Feb 2012 at 8:45

GoogleCodeExporter commented 9 years ago
done, please test 0.21-SNAPSHOT

Use RequestListener

Original comment by brian.di...@gmail.com on 24 Feb 2012 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by brian.di...@gmail.com on 25 May 2012 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by brian.di...@gmail.com on 26 May 2012 at 2:46

GoogleCodeExporter commented 9 years ago
Could something similar also be implemented on the server side, also?

Original comment by gengkev on 16 Feb 2013 at 4:24

GoogleCodeExporter commented 9 years ago
yes

Original comment by brian.di...@gmail.com on 16 Feb 2013 at 7:59

GoogleCodeExporter commented 9 years ago
How?

Original comment by supremee...@gmail.com on 18 Dec 2013 at 3:15