Skip to content

Commit

Permalink
Remove exploratory code that wasn't required.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeNeilson committed Oct 31, 2023
1 parent 626d730 commit b900ed9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cwms-data-api/src/main/java/cwms/cda/ApiServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,13 @@ private void getOpenApiOptions(JavalinConfig config) {
CdaAccessManager am = buildAccessManager(provider);
Components components = new Components();
final ArrayList<SecurityRequirement> secReqs = new ArrayList<>();
final ArrayList<String> securityItems = new ArrayList<>();
am.getContainedManagers().forEach((manager)->{
components.addSecuritySchemes(manager.getName(),manager.getScheme());
SecurityRequirement req = new SecurityRequirement();
if (!manager.getName().equalsIgnoreCase("guestauth") && !manager.getName().equalsIgnoreCase("noauth")) {
req.addList(manager.getName());
secReqs.add(req);
securityItems.add(manager.getName());
}

});

config.accessManager(am);
Expand Down

0 comments on commit b900ed9

Please sign in to comment.