Skip to content

Commit

Permalink
don't restrict AuthScope
Browse files Browse the repository at this point in the history
  • Loading branch information
cpesch committed Jul 2, 2024
1 parent 340fb45 commit 20a33dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/src/main/java/slash/navigation/rest/HttpRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public <T> T execute(HttpClientResponseHandler<T> responseHandler) throws IOExce
clientBuilder.setDefaultRequestConfig(requestConfig);
if(credentials != null) {
HttpHost httpHost = new HttpHost(uri.getScheme(), uri.getHost(), uri.getPort());
AuthScope authScope = new AuthScope(httpHost, "api", null);
AuthScope authScope = new AuthScope(httpHost, null, null);
clientBuilder.setDefaultCredentialsProvider(CredentialsProviderBuilder.create()
.add(authScope, credentials.getUserName(), credentials.getPassword())
.build());
Expand Down

0 comments on commit 20a33dd

Please sign in to comment.