From c958fbf949bb12ccfc719f32ecc25b99105d982f Mon Sep 17 00:00:00 2001 From: Steve Hu Date: Wed, 2 Aug 2023 09:39:13 -0400 Subject: [PATCH] fixes #311 swt introspection to use request headers for clientId andd clientSecret (#312) --- .../java/com/networknt/openapi/SwtVerifyHandler.java | 12 ++++++++++-- .../src/main/resources/config/openapi-security.yml | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/openapi-security/src/main/java/com/networknt/openapi/SwtVerifyHandler.java b/openapi-security/src/main/java/com/networknt/openapi/SwtVerifyHandler.java index f8db1256..16f76914 100644 --- a/openapi-security/src/main/java/com/networknt/openapi/SwtVerifyHandler.java +++ b/openapi-security/src/main/java/com/networknt/openapi/SwtVerifyHandler.java @@ -17,6 +17,7 @@ import com.networknt.security.SecurityConfig; import com.networknt.utility.Constants; import com.networknt.utility.ModuleRegistry; +import com.networknt.utility.StringUtils; import io.undertow.Handlers; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; @@ -136,7 +137,10 @@ public boolean handleSwt(HttpServerExchange exchange, String reqPath, List