Skip to content

Commit

Permalink
auth: default to Basic WWW-Authenticate header
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrademakers committed Oct 26, 2023
1 parent fe7e9ad commit a7ddd06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/authentication/authentication_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ where
}
None => Err(
AuthenticationError::HttpParseError(http_authorization_line.to_string())
.into_unknown_error(),
.into_basic_error(),
),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/authentication/authentication_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ where
let auth = match parse_result {
Ok(p) => p,
Err(e) => {
return unauthorized_response(request.request(), e.into_unknown_error(), realm)
return unauthorized_response(request.request(), e.into_basic_error(), realm)
}
};

Expand Down

0 comments on commit a7ddd06

Please sign in to comment.