redditwarp.auth.utils#

redditwarp.auth.utils.basic_auth(userid: str, password: str, *, scheme: str = 'Basic') str[source]#

Make a basic auth string suitable for use in an Authorization header.

redditwarp.auth.utils.apply_basic_auth(headers: MutableMapping[str, str], userid: str, password: str, *, scheme: str = 'Basic', header_name: str = 'Authorization') None[source]#

Write a basic auth string into the Authorization field of a headers mapping.