mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
fix(auth): fix password with colons (#3402)
Fix #3401 --------- Co-authored-by: Taiming Liu <90490946+taimingl@users.noreply.github.com>
This commit is contained in:
co-authored by
Taiming Liu
parent
32346e82b1
commit
360e13790a
@@ -376,7 +376,7 @@ async fn oo_validator_internal(
|
||||
let credentials = String::from_utf8(decoded.into())
|
||||
.map_err(|_| ())
|
||||
.expect("Failed to decode base64 string");
|
||||
let parts: Vec<&str> = credentials.split(':').collect();
|
||||
let parts: Vec<&str> = credentials.splitn(2, ':').collect();
|
||||
if parts.len() != 2 {
|
||||
return Err((ErrorUnauthorized("Unauthorized Access"), req));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user