Open-AudIT https://www.open-audit.org/phpBB3/ |
|
How to login open-audit through rest API? https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6633 |
Page 1 of 1 |
Author: | prabhu [ Thu Nov 09, 2017 5:20 pm ] |
Post subject: | How to login open-audit through rest API? |
Hi, I am trying to login open-audit using REST API through postman but i can't able to do it. I am getting 401 error. I used following to login, http://127.0.0.1/omk/open-audit/logon?username=admin&password=password&format=json |
Author: | Mark [ Mon Nov 13, 2017 1:48 pm ] |
Post subject: | Re: How to login open-audit through rest API? |
You should send a POST containing the username and password attributes. Do not put them in the URL. The documentation also incorrectly stated logon, not login, apologies (this is now fixed). http://127.0.0.1/omk/open-audit/login If you want a JSON response, append ?format=json OR set a header of "HTTP_ACCEPT" to "application/json" (sans quotes). |
Page 1 of 1 | All times are UTC + 10 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |