Authentication

Authentication

ODataDB supports basic authentication, as specified in RFC2617.

To activate the authentication, use the 'user' and 'pass' placeholders in the connection strings.

To authenticate, ODataDB asks for username and password, changes the placeholders to the actual values, and tries to connect to a database.

If the connection is successful, ODataDB performs the required action. Otherwise, it returns error 401 "Unauthorized."

Do not use ODataDB over HTTP as it sends usernames and passwords as plain text, according to RFC2617.

Always turn on HTTPS and redirect HTTP to HTTPS.