based on an env. variable, client authentication can be disabled
Change-Id: I6d787644ef1439b8e88dcc3dec7f5181b11b7f11
Issue-ID: AAI-2132
Signed-off-by: Serban Popescu <serban.popescu@amdocs.com>
props.put("server.ssl.trust-store-password", trustStorePassword);\r
}\r
\r
+ String requireClientAuth = System.getenv("REQUIRE_CLIENT_AUTH");\r
+ if (requireClientAuth == null || requireClientAuth.isEmpty()) {\r
+ props.put("server.ssl.client-auth", "need");\r
+ }else {\r
+ props.put("server.ssl.client-auth", Boolean.valueOf(requireClientAuth)? "need" : "want");\r
+ }\r
+ \r
new Application().configure(new SpringApplicationBuilder(Application.class).properties(props)).run(args);\r
}\r
}\r
server.ssl.key-store=/opt/app/search-data-service/config/auth/tomcat_keystore\r
server.ssl.enabled=true\r
server.port=9509\r
-server.ssl.client-auth=need\r
server.ssl.enabled-protocols=TLSv1.1,TLSv1.2\r