From a3d9ac859fa47f2aa2849160e08c7a3c1048589e Mon Sep 17 00:00:00 2001 From: Serge Simard Date: Fri, 17 May 2019 06:39:58 -0400 Subject: Remote AWX ansible playbook executor Issue-ID: CCSDK-1357 Change-Id: I794ce5450b341606829a1a37d9efed48abab32cc Signed-off-by: Serge Simard --- .../rest/service/BluePrintRestLibPropertyService.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ms/blueprintsprocessor/modules') diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt index a6bbc39d8..da4d9933f 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/BluePrintRestLibPropertyService.kt @@ -56,6 +56,9 @@ open class BluePrintRestLibPropertyService(private var bluePrintProperties: RestLibConstants.TYPE_BASIC_AUTH -> { basicAuthRestClientProperties(prefix) } + RestLibConstants.TYPE_TOKEN_AUTH -> { + tokenRestClientProperties(prefix) + } RestLibConstants.TYPE_SSL_BASIC_AUTH -> { sslBasicAuthRestClientProperties(prefix) } @@ -141,6 +144,12 @@ open class BluePrintRestLibPropertyService(private var bluePrintProperties: } } + private fun tokenRestClientProperties(prefix: String): + TokenAuthRestClientProperties { + return bluePrintProperties.propertyBeanType( + prefix, TokenAuthRestClientProperties::class.java) + } + private fun basicAuthRestClientProperties(prefix: String): BasicAuthRestClientProperties { return bluePrintProperties.propertyBeanType( -- cgit 1.2.3-korg