You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> *Note*: Storing passwords in a plain text file is *strongly discouraged* due to security risks. If no other option is available, ensure that the file permissions are restricted to 0600 to limit access *only* to the file owner.
106
-
107
-
The `authentication.method_dictionary` contains a plaintext `username:password`
108
-
credentials for authentication. If the user's login matches any of the
109
-
credentials listed, the user will be authenticated.
105
+
> *Note*: Storing passwords in a plain text file is *strongly discouraged* due to security risks.
106
+
If no other option is available, ensure that the file permissions are restricted to 0600
107
+
to limit access *only* to the file owner.
108
+
109
+
The `authentication.method_dictionary` may contain several formats of user credentials:
110
+
111
+
-`username:password`
112
+
- legacy user credential format, **not recommended**
113
+
-`username:password_hash:hash_algorithm`
114
+
- recommended user credential format
115
+
-`username:password_hash:hash_algorithm:salt`
116
+
- highest security user credential format, `password_hash`
117
+
is calculated by appending `salt` to the provided password
118
+
119
+
Supported `hash_algorithm` string values depend on hash algorithms supported by
120
+
the [hashlib](https://docs.python.org/3/library/hashlib.html#hash-algorithms)
121
+
Python module. Examples of supported `hash_algorithm` values:
122
+
-`sha224`, `sha256`, `sha384`, `sha512`
123
+
- added in Python 3.6: `sha3_224`, `sha3_256`, `sha3_384`, `sha3_512`
124
+
125
+
If the user's login matches any of the credentials listed, the user will be authenticated.
110
126
111
127
Groups are configured in a map which maps to each username the list of groups
0 commit comments