Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The password hash in the configuration has to be the bcrypt (type $2a$)-encrypted hash value of the password.

Example value:

Code Block
$2a$10$5E1KpGIKSq6xuWmGf92bheB17V0l4fEMnVmYPqhWiazKddcx1TF$2y$10$BVN92BjOQag3b5onDKHH9OQuoRtLTlIKi7cTUPjFGVV54t/eXvfShy
Info

Hint: This value will always contain $-characters. When using this from command prompt in Linux or Windows environment, this character may need to be escaped or the complete string quoted (try both: single- or double-quotes).

Creating a bcrypt-hash value

The Apache2 utilities provide a tool called htpasswd. Create bcrypt-hashs using this tool.

Example command and output to generate the hash for string “plainpassword”:

Code Block
$ htpasswd -nbBC 10 USER plainpassword
USER:$2y$10$1J2BG6LJYImEcZVRxXn1TOs9iRKLvJvWWSf5/AE5ZOaWUlmZxQJsa

Info

Hint: On Linux systems apache2-utils can be installed using the installed package manager. Probably administrative privileges are required, so the sudo command may be required.

Example command when using apt package manager:

  • Code Block
    apt install apache2-utils

Configuring tia Status UI for OAuth2 Authentication

...