Skip to content

Commit

Permalink
feat: Extend authentication to support Bearer token for many resources (
Browse files Browse the repository at this point in the history
  • Loading branch information
aikebah authored Jan 1, 2025
1 parent f2093dd commit 70b40e4
Show file tree
Hide file tree
Showing 19 changed files with 1,165 additions and 1,508 deletions.
967 changes: 85 additions & 882 deletions ant/src/main/java/org/owasp/dependencycheck/taskdefs/Check.java

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions ant/src/main/java/org/owasp/dependencycheck/taskdefs/Purge.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public class Purge extends Task {
*/
private boolean failOnError = true;

/**
* The URL to hosted suppressions file with base FP suppressions.
*/
private String hostedSuppressionsUrl = null;

/**
* Construct a new DependencyCheckTask.
*/
Expand All @@ -77,15 +72,6 @@ public Settings getSettings() {
return settings;
}

/**
* Get the value of dataDirectory.
*
* @return the value of dataDirectory
*/
public String getDataDirectory() {
return dataDirectory;
}

/**
* Set the value of dataDirectory.
*
Expand Down Expand Up @@ -113,24 +99,6 @@ public void setFailOnError(boolean failOnError) {
this.failOnError = failOnError;
}

/**
* Get the value of hostedSuppressionsUrl.
*
* @return the value of hostedSuppressionsUrl
*/
public String getHostedSuppressionsUrl() {
return hostedSuppressionsUrl;
}

/**
* Set the value of hostedSuppressionsUrl.
*
* @param hostedSuppressionsUrl new value of hostedSuppressionsUrl
*/
public void setHostedSuppressionsUrl(final String hostedSuppressionsUrl) {
this.hostedSuppressionsUrl = hostedSuppressionsUrl;
}

/**
* Sets the
* {@link Thread#getContextClassLoader() Thread Context Class Loader} to the
Expand Down Expand Up @@ -213,7 +181,6 @@ protected void populateSettings() throws BuildException {
}
log(msg, ex, Project.MSG_WARN);
}
settings.setStringIfNotEmpty(Settings.KEYS.HOSTED_SUPPRESSIONS_URL, hostedSuppressionsUrl);
if (dataDirectory != null) {
settings.setString(Settings.KEYS.DATA_DIRECTORY, dataDirectory);
} else {
Expand Down
Loading

0 comments on commit 70b40e4

Please sign in to comment.