Skip to main content

check_basic_auth

Function check_basic_auth 

Source
pub fn check_basic_auth(cfg: &AuthCfg, headers: &HeaderMap) -> bool
Expand description

Verify HTTP Basic credentials against the configured users. A stored value beginning with $argon2 is verified as a PHC hash; otherwise it is compared as plaintext (dev mode).