Open-AudIT

What's on your network?
It is currently Fri Nov 24, 2017 6:36 am

All times are UTC + 10 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Nov 09, 2017 5:20 pm 
Offline
Newbie

Joined: Thu Nov 09, 2017 4:53 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 13, 2017 1:48 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1931
Location: Brisbane, Australia
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).

_________________
Support and Development hours available from Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group