Authentication with DBGate

Authentication with DBGate

DBGate supports basic authentication, as specified in RFC2617.

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

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

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

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

Always turn on HTTPS and redirect HTTP to HTTPS.