mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
20 lines
606 B
HTTP
20 lines
606 B
HTTP
HTTP authentication can be enabled from the ntopng preferences page.
|
|
|
|
NTOP will request a POST to an url with a JSON content:
|
|
{ "user": "username", "password": "password" }
|
|
|
|
User is granted if webservice return code 200, anything else
|
|
user is not granted. Content-type and answser content are not checked.
|
|
|
|
If you want to grant a user as an administrator, webservice must
|
|
reply a JSON like:
|
|
{ "admin": true }
|
|
|
|
HTTP authentication parameters are discussed below.
|
|
|
|
* HTTP Url
|
|
Url to request for authentication.
|
|
Examples:
|
|
http://server.tld/auth
|
|
https://server.tld/auth
|
|
http://192.168.1.1/api/auth
|