SensusRF gateway user manual
| 29/10/2019
The "Basic" HTTP authentication scheme, transmits credentials as user username/password pairs, encoded
using base64.
The Authorization field is constructed as follows:
The username and password are combined with a single colon (:). This means that the username
itself cannot contain a colon.
The character set to use for this encoding is UTF-8.
The resulting string is encoded using Base64.
The user name and password are unencrypted base64 encoded text. It is recommended to be used
with HTTPS, as the password can be captured over HTTP.
The authorization method and a space (e.g. "Basic ") is then prepended to the encoded string.
For example:
• Username: sensus
• Password: passwdtest
The field's value is the base64-encoding of sensus:passwdtest or c2Vuc3VzOnBhc3N3ZHRlc3Q=.
Then the Authorization header will appear as:
Authorization: Basic c2Vuc3VzOnBhc3N3ZHRlc3Q=.
The Server should validate the username and password and respond:
HTTP 200 means configuration is OK
HTTP 401 means invalid username or password
HTTP 404 means invalid URL