Update readme.md 82/73682/1
authorsebdet <sebastien.determe@intl.att.com>
Tue, 27 Nov 2018 13:38:14 +0000 (14:38 +0100)
committersebdet <sebastien.determe@intl.att.com>
Tue, 27 Nov 2018 13:38:14 +0000 (14:38 +0100)
Update authentication part that had not been updated

Issue-ID: CLAMP-249
Change-Id: I7e72a10cbadbaf6f4a1eb2c2bb6cdbc880e1b218
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
README.md

index 4eaed8a..08c2b20 100644 (file)
--- a/README.md
+++ b/README.md
@@ -122,7 +122,48 @@ You can see the swagger definition for the jaxrs apis at `/restservices/clds/v1/
 \r
 ## Clamp Credentials\r
 \r
-Credentials should be specified in `src/main/resources/clds/clds-users.json`. You might specify you own credential file by redefining the `clamp.config.files.cldsUsers` in `application.properties`.\r
+There are two mechanisms that can enabled for the authentication, one or the other never both at the same time. \r
+They can be enabled in the application.properties.\r
+\r
+1. AAF CA\r
+There is a section for SSL enablement and cadi configuration (for AAF) + one spring profile to enable\r
+\r
+server.port=8443\r
+server.ssl.key-store=classpath:/clds/aaf/org.onap.clamp.p12\r
+server.ssl.key-store-password=China in the Spring\r
+server.ssl.key-password=China in the Spring\r
+server.ssl.key-store-type=PKCS12\r
+server.ssl.key-alias=clamp@clamp.onap.org\r
+server.ssl.client-auth=want\r
+server.ssl.trust-store=classpath:/clds/aaf/truststoreONAPall.jks\r
+server.ssl.trust-store-password=changeit\r
+\r
+server.http-to-https-redirection.port=8080\r
+....\r
+spring.profiles.active=clamp-default,clamp-aaf-authentication,clamp-sdc-controller\r
+....\r
+clamp.config.cadi.keyFile=classpath:/clds/aaf/org.onap.clamp.keyfile\r
+clamp.config.cadi.cadiLoglevel=DEBUG\r
+clamp.config.cadi.cadiLatitude=37.78187\r
+clamp.config.cadi.cadiLongitude=-122.26147\r
+clamp.config.cadi.aafLocateUrl=https://aaf.api.simpledemo.onap.org:8095\r
+clamp.config.cadi.cadiKeystorePassword=enc:V_kq_EwDNb4itWp_lYfDGXIWJzemHGkhkZOxAQI9IHs\r
+clamp.config.cadi.cadiTruststorePassword=enc:Mj0YQqNCUKbKq2lPp1kTFQWeqLxaBXKNwd5F1yB1ukf\r
+clamp.config.cadi.aafEnv=DEV\r
+clamp.config.cadi.aafUrl=https://AAF_LOCATE_URL/AAF_NS.service:2.0\r
+clamp.config.cadi.cadiX509Issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US\r
+\r
+In that case a certificate must be added in the browser and is required to login properly\r
+Please check that section to get the certificate\r
+https://wiki.onap.org/display/DW/Control+Loop+Flows+and+Models+for+Casablanca#ControlLoopFlowsandModelsforCasablanca-Configure\r
+\r
+Or it can be found in the Clamp source code folder src/main/resources/clds/aaf\r
+(Default Password: "China in the Spring")\r
+\r
+2. Spring authentication\r
+It's possible to enable the spring authentication by disabling the "clamp-aaf-authentication" profile and enabling only the "clamp-default-user"\r
+spring.profiles.active=clamp-default,clamp-default-user,clamp-sdc-controller\r
+In that case, the credentials should be specified in `src/main/resources/clds/clds-users.json`. You might specify you own credential file by redefining the `clamp.config.files.cldsUsers` in `application.properties`.\r
 \r
 Passwords should be hashed using Bcrypt :\r
 ```\r