Skip to main content

validate_http_basic_auth

Function validate_http_basic_auth 

Source
pub fn validate_http_basic_auth(value: &str) -> f32
Expand description

Decode-validate an HTTP Basic credential token (the value after Basic ).

Requires canonical base64 padding, UTF-8 printable ASCII with no NUL, and a user:password split where both sides are non-empty.