Skip to content

Commit

Permalink
editoast: fix user name parsing typo in authorizer middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Valais <[email protected]>
  • Loading branch information
leovalais committed Dec 10, 2024
1 parent 1a9239e commit 9a10a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editoast/src/views/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async fn authenticate(
return Ok(Authentication::Unauthenticated);
};
let identity = str::from_utf8(identity.as_bytes())
.expect("unexpected non-ascii characters in x-remote-user-identity");
.expect("unexpected non-utf8 characters in x-remote-user-identity");

let name = match headers.get("x-remote-user-name") {
Some(name) => str::from_utf8(name.as_bytes())
Expand Down

0 comments on commit 9a10a58

Please sign in to comment.