mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Http allowed nets (#2196)
* Inject allowed nets from http authenticator * Update doc * include some other user's preferences * Inject allowed nets from http authenticator * Update doc * include some other user's preferences
This commit is contained in:
parent
69f2b7b657
commit
77a4f4e9ce
5 changed files with 60 additions and 0 deletions
|
|
@ -10,6 +10,25 @@ If you want to grant a user as an administrator, webservice must
|
|||
reply a JSON like:
|
||||
{ "admin": true }
|
||||
|
||||
Some optionals fields can personalize user.
|
||||
You can set allowed ifname via optional allowedIfname field:
|
||||
{ "allowedIfname": "ethX" }
|
||||
|
||||
You can set allowed network via optional allowedNets field:
|
||||
{ "allowedNets": "10.0.0.0/24,192.168.0.0/16" }
|
||||
|
||||
You can set language via optional language field:
|
||||
{ "language": "en" }
|
||||
|
||||
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
|
||||
|
||||
# Setting up a simple HTTP authenticator
|
||||
The python script https://github.com/ntop/ntopng/blob/dev/tools/http_authenticator.py
|
||||
shows how to implement a simple HTTP authenticator. It assumes that a `/login` path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue