Hello,
I'm trying to integrate LimeSurvey with my own web server through its API. My own web server has its own usernames and passwords, and my web server needs to authenticate a user through the API.
Is there a way to call the LimeSurvey get_session_key API (JSON-RPC), but not use AuthDB? (I can't use AuthLDAP). Is there a way to use, for example, Authwebserver, instead, using the Authwebserver plugin, to allow my web server to authenticate a user over the JSON-RPC API?
The following
does not work:
Code:
curl --location --request POST 'https://mysurveyserver/index.php/admin/remotecontrol' --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Content-Type: text/plain' --header 'Cookie: PHPSESSID=hg4kkgne7m15du97envg834l8u'
--data-raw '{
"jsonrpc": "2.0",
"method": "get_session_key",
"params": [
"username@email.com",
"anydummypassword",
"Authwebserver"
],
"id": 1
}'
This returns the following error:
Code:
{"id":1,"result":{"status":"Invalid user name or password"},"error":null}
Thanks in advance.