sipcapture / homer

HOMER - 100% Open-Source SIP, VoIP, RTC Packet Capture & Monitoring
https://sipcapture.org
GNU Affero General Public License v3.0
1.61k stars 240 forks source link

API Auth Error Homer 7 #570

Closed PJ111288 closed 12 months ago

PJ111288 commented 1 year ago

Hello Sir,

Need help to login through API. I am trying to use api but unable to authenticate and getting following response or error.

curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"password123"}' http://localhost:9080/api/v3/session

Note: Unnecessary use of -X or --request, POST is already inferred.

github-actions[bot] commented 1 year ago

Please star this repository to motivate the developers and to get higher priority! :star:

idanam-del commented 1 year ago

hey @PJ111288 i have the same isse. Have you found a solution?

lmangani commented 12 months ago

The API needs an authentication token and not a user:password. You can generate tokens and explore the API authentication directly from the HOMER 7 UI in the Admin section.