check_basic_auth

Function check_basic_auth 

Source
pub fn check_basic_auth(
    auth_header: Option<&str>,
    credentials: &Credentials,
) -> bool
Expand description

Checks if the request has valid Basic authentication.

Returns true if authentication is successful or not required. Returns false if authentication is required but failed.

ยงArguments

  • auth_header - The value of the Authorization header, if present.
  • credentials - The credentials to check against.