werkzeug.parse_authorization_header

werkzeug.parse_authorization_header(value)[source]

Parse an HTTP basic/digest authorization header transmitted by the web browser. The return value is either None if the header was invalid or not given, otherwise an Authorization object.

Parameters:value – the authorization header to parse.
Returns:a Authorization object or None.