From a55b0d674ce4da26da763c469dcb0a737c75828b Mon Sep 17 00:00:00 2001 From: joshua bauer Date: Tue, 23 May 2017 07:22:12 -0700 Subject: [PATCH] Fix for Swagger security definition name and key. --- .../java/io/sinistral/proteus/services/SwaggerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } }