module documentation
HTTP authentication module.
| Class | |
No class docstring; 0/3 constant, 7/7 methods documented |
| Class | |
Data structure for users from password file. |
| Function | |
Parses the contents of a password file. |
| Constant | HTTP |
Undocumented |
| Constant | HTTP |
Undocumented |
| Function | _ |
Formats WWW-Authentication header value as per RFC2617, section 1.2 |
| Constant | _NOQUOTE |
Undocumented |
Parses the contents of a password file.
Lines in the password file are of the following format:
<username> <password> [options]
Fields are separated by whitespace. Username and password are mandatory, options are optional and separated by comma (','). Empty lines and comments ('#') are ignored.
| Parameters | |
| contents:str | Contents of password file |
| Returns | |
| dict | Dictionary containing PasswordFileUser instances |