Skip to content

Commit 25d8d5c

Browse files
authored
fixes #705 update security.yml for all frameworks (#706)
1 parent b95089c commit 25d8d5c

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

light-graphql-4j/src/main/java/com/networknt/codegen/graphql/GraphqlGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void generate(String targetPath, Object schema, JsonNode config) throws I
8585

8686
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "server.yml", templates.graphql.serverYml.template(serviceId, enableHttp, httpPort, enableHttps, httpsPort, enableHttp2, enableRegistry, version));
8787
transfer(targetPath, ("src.test.resources.config").replace(".", separator), "server.yml", templates.graphql.serverYml.template(serviceId, enableHttp, "49587", enableHttps, "49588", enableHttp2, enableRegistry, version));
88-
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "graphql-security.yml", templates.graphql.securityYml.template());
88+
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "security.yml", templates.graphql.securityYml.template());
8989
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "graphql-validator.yml", templates.graphql.validatorYml.template());
9090
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "primary.crt", templates.graphql.primaryCrt.template());
9191
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "secondary.crt", templates.graphql.secondaryCrt.template());

light-hybrid-4j/src/main/java/com/networknt/codegen/hybrid/HybridServerGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void generate(String targetPath, Object model, JsonNode config) throws IO
9898
}
9999

100100
// transfer(targetPath, ("src.main.resources.config").replace(".", separator), "secret.yml", templates.hybrid.secretYml.template());
101-
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "hybrid-security.yml", templates.hybrid.securityYml.template());
101+
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "security.yml", templates.hybrid.securityYml.template());
102102

103103
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "primary.crt", templates.hybrid.primaryCrt.template());
104104
transfer(targetPath, ("src.main.resources.config").replace(".", separator), "secondary.crt", templates.hybrid.secondaryCrt.template());

light-hybrid-4j/src/main/java/com/networknt/codegen/hybrid/HybridServiceGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void generate(String targetPath, Object model, JsonNode config) throws IO
8686

8787
transfer(targetPath, ("src.test.resources.config").replace(".", separator), "server.yml", templates.hybrid.serverYml.template(serviceId, enableHttp, "49587", enableHttps, "49588", enableHttp2, enableRegistry, version));
8888
//transfer(targetPath, ("src.test.resources.config").replace(".", separator), "secret.yml", templates.hybrid.secretYml.template());
89-
transfer(targetPath, ("src.test.resources.config").replace(".", separator), "hybrid-security.yml", templates.hybrid.securityYml.template());
89+
transfer(targetPath, ("src.test.resources.config").replace(".", separator), "security.yml", templates.hybrid.securityYml.template());
9090
if(kafkaProducer) {
9191
transfer(targetPath, ("src.test.resources.config").replace(".", separator), "kafka-producer.yml", templates.hybrid.kafkaProducerYml.template(kafkaTopic));
9292
}

light-hybrid-4j/src/main/resources/templates/hybrid/values.rocker.raw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# server.yml
88
server.serviceId: com.networknt.placeholder-1.0.0
99

10-
# hybrid-security.yml
11-
hybrid-security.enableVerifyJwt: true
10+
# security.yml
11+
security.enableVerifyJwt: true
1212

1313
# service.yml
1414
service.singletons:

light-rest-4j/src/main/resources/templates/rest/values.rocker.raw

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ server.enableRegistry: @enableRegistry
2121
server.serviceId: @serviceId
2222
server.buildNumber: @version
2323

24-
# openapi-security.yml
25-
# https://github.com/networknt/light-rest-4j/blob/master/openapi-security/src/main/resources/config/openapi-security.yml
26-
openapi-security.enableVerifyJwt: false
24+
# security.yml
25+
security.enableVerifyJwt: false
2726

2827
# service.yml
2928
service.singletons:

0 commit comments

Comments
 (0)