Webservice Authentication
Follow these steps to enable the webservice for todo4teams:
- Select "Systems" in the main menu and add a new entry there:
Set the clients' IP address or a wildcard pattern (as a regular expression) to filter the system that might access the services:
Take the following patterns as examples:- IPs: .* (all IPs)
- IPs: 192\.168\.5\.221 (the exact IP 192.168.5.221)
- IPs: 192\.168\.5\.\d+ (the subnet 192.168.5.*)
- Add more system entries if needed.
- Optional: Enable authentication for the webservices:
- Select "System Properties" and add an entry "RESTUSERAUTHENTICATION" with value "required", lke this:
- Select "Users" in the main menu and add a new user to be used for these services exclusively and select roles "Admin" and category "Systems".
Set a valid password to be used in the API calls.
- Select "System Properties" and add an entry "RESTUSERAUTHENTICATION" with value "required", lke this:
- Use the 'curl' command to check if the settings are correct. E.g. fetch the list of users:
curl -u yourapiuser:yourapipassword -H "Accept: application/json" -H "Content-Type: application/json" -X GET "https://yourtodoserver/todo4teams/rest/users" Set the credentials like set above.