Authentication with ODataDB

Authentication with ODataDB

ODataDB supports basic authentication, as specified in RFC2617.

Use the 'user' and 'pass' placeholders in the connection strings to activate the authentication.

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.