Skip to content

Commit

Permalink
support emqx monitor (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-934 authored Oct 28, 2023
1 parent 677ddc7 commit 3faa280
Show file tree
Hide file tree
Showing 2 changed files with 423 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public HttpContext createHttpContext(HttpProtocol httpProtocol) {
&& StringUtils.hasText(auth.getDigestAuthPassword())) {
CredentialsProvider provider = new BasicCredentialsProvider();
UsernamePasswordCredentials credentials
= new UsernamePasswordCredentials(auth.getBasicAuthUsername(), auth.getBasicAuthPassword());
= new UsernamePasswordCredentials(auth.getDigestAuthUsername(), auth.getDigestAuthPassword());
provider.setCredentials(AuthScope.ANY, credentials);
AuthCache authCache = new BasicAuthCache();
authCache.put(new HttpHost(httpProtocol.getHost(), Integer.parseInt(httpProtocol.getPort())), new DigestScheme());
Expand Down
Loading

0 comments on commit 3faa280

Please sign in to comment.