diff --git a/src/main/java/io/sinistral/proteus/services/SwaggerService.java b/src/main/java/io/sinistral/proteus/services/SwaggerService.java index f82b719..493549e 100644 --- a/src/main/java/io/sinistral/proteus/services/SwaggerService.java +++ b/src/main/java/io/sinistral/proteus/services/SwaggerService.java @@ -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); } } }