Skip to content

Commit

Permalink
Fix for Swagger security definition name and key.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed May 23, 2017
1 parent 94ece22 commit a55b0d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ public HttpHandler wrap(final HttpHandler handler)
};

ApiKeyAuthDefinition keyAuthDefinition = new ApiKeyAuthDefinition(name, keyLocation);
swagger.addSecurityDefinition(name, keyAuthDefinition);
swagger.addSecurityDefinition(key, keyAuthDefinition);

registeredHandlerWrappers.put(name, wrapper);
registeredHandlerWrappers.put(key, wrapper);
}
}
}
Expand Down

0 comments on commit a55b0d6

Please sign in to comment.