From bc89756f98cb436b97c15331a35f91253bec31a8 Mon Sep 17 00:00:00 2001 From: Steve Hu Date: Tue, 5 May 2020 19:43:19 -0400 Subject: [PATCH] fixes #435 add keyResolver ot the security configuration template --- .../src/main/resources/templates/graphql/securityYml.rocker.raw | 2 ++ .../src/main/resources/templates/hybrid/securityYml.rocker.raw | 2 ++ .../resources/templates/rest/openapiSecurity.yml.rocker.raw | 2 ++ .../resources/templates/rest/swaggerSecurity.yml.rocker.raw | 2 ++ 4 files changed, 8 insertions(+) diff --git a/light-graphql-4j/src/main/resources/templates/graphql/securityYml.rocker.raw b/light-graphql-4j/src/main/resources/templates/graphql/securityYml.rocker.raw index 6cf96f4c5..f7036dd85 100644 --- a/light-graphql-4j/src/main/resources/templates/graphql/securityYml.rocker.raw +++ b/light-graphql-4j/src/main/resources/templates/graphql/securityYml.rocker.raw @@ -18,6 +18,8 @@ jwt: '100': primary.crt '101': secondary.crt clockSkewInSeconds: 60 + # Key distribution server standard: JsonWebKeySet for other OAuth 2.0 provider| X509Certificate for light-oauth2 + keyResolver: X509Certificate # Enable or disable JWT token logging logJwtToken: true diff --git a/light-hybrid-4j/src/main/resources/templates/hybrid/securityYml.rocker.raw b/light-hybrid-4j/src/main/resources/templates/hybrid/securityYml.rocker.raw index a8a764b7c..30eb86b60 100644 --- a/light-hybrid-4j/src/main/resources/templates/hybrid/securityYml.rocker.raw +++ b/light-hybrid-4j/src/main/resources/templates/hybrid/securityYml.rocker.raw @@ -18,6 +18,8 @@ jwt: '100': primary.crt '101': secondary.crt clockSkewInSeconds: 60 + # Key distribution server standard: JsonWebKeySet for other OAuth 2.0 provider| X509Certificate for light-oauth2 + keyResolver: X509Certificate # Enable or disable JWT token logging logJwtToken: true diff --git a/light-rest-4j/src/main/resources/templates/rest/openapiSecurity.yml.rocker.raw b/light-rest-4j/src/main/resources/templates/rest/openapiSecurity.yml.rocker.raw index 8b033c38d..9a1f70c8f 100644 --- a/light-rest-4j/src/main/resources/templates/rest/openapiSecurity.yml.rocker.raw +++ b/light-rest-4j/src/main/resources/templates/rest/openapiSecurity.yml.rocker.raw @@ -25,6 +25,8 @@ jwt: '100': primary.crt '101': secondary.crt clockSkewInSeconds: 60 + # Key distribution server standard: JsonWebKeySet for other OAuth 2.0 provider| X509Certificate for light-oauth2 + keyResolver: X509Certificate # Enable or disable JWT token logging logJwtToken: ${openapi-security.logJwtToken:true} diff --git a/light-rest-4j/src/main/resources/templates/rest/swaggerSecurity.yml.rocker.raw b/light-rest-4j/src/main/resources/templates/rest/swaggerSecurity.yml.rocker.raw index b194e258c..da2d67831 100644 --- a/light-rest-4j/src/main/resources/templates/rest/swaggerSecurity.yml.rocker.raw +++ b/light-rest-4j/src/main/resources/templates/rest/swaggerSecurity.yml.rocker.raw @@ -18,6 +18,8 @@ jwt: '100': primary.crt '101': secondary.crt clockSkewInSeconds: 60 + # Key distribution server standard: JsonWebKeySet for other OAuth 2.0 provider| X509Certificate for light-oauth2 + keyResolver: X509Certificate # Enable or disable JWT token logging logJwtToken: true