aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/auth/src
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2019-08-07 06:51:14 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-07 06:51:14 +0000
commit1b7553143682d82c9415c9d4341c652f1e49dc97 (patch)
tree3b1e96f5aaf764887c6ad0f7a1334353d26088ff /products/onap-elalto/auth/src
parent4b279245d18de79879240e587d78db16dd3f09b6 (diff)
parent6a0d36293116fc640e00da79c6517183cfb22689 (diff)
Merge changes I99b6c01e,I812465a2,Ia2260c45,Idcd8872f,Ia818d735, ...
* changes: Add policy login elalto Add sdc login elato Add basic logout elalto Add place holder for onap-el-alto Add elalto basic auth login Make conf and script optional in zip
Diffstat (limited to 'products/onap-elalto/auth/src')
-rw-r--r--products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java24
-rw-r--r--products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java24
-rw-r--r--products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java24
-rw-r--r--products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java24
-rw-r--r--products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand18
-rw-r--r--products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml43
-rw-r--r--products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml45
-rw-r--r--products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml50
-rw-r--r--products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml34
9 files changed, 286 insertions, 0 deletions
diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java
new file mode 100644
index 00000000..d4b23d46
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandElalto.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2019 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.cli.cmd.auth;
+
+import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand;
+import org.onap.cli.fw.schema.OnapCommandSchema;
+
+@OnapCommandSchema(schema = "basic-login-onap-elalto.yaml")
+public class OnapBasicAuthLoginCommandElalto extends BasicAuthLoginCommand {
+}
diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java
new file mode 100644
index 00000000..38e93f1f
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandElalto.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2019 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.cli.cmd.auth;
+
+import org.onap.cli.fw.http.cmd.BasicAuthLogoutCommand;
+import org.onap.cli.fw.schema.OnapCommandSchema;
+
+@OnapCommandSchema(schema = "basic-logout-onap-elalto.yaml")
+public class OnapBasicAuthLogoutCommandElalto extends BasicAuthLogoutCommand {
+}
diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java
new file mode 100644
index 00000000..17d7d04a
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapPolicyBasicAuthLoginCommandElalto.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2019 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.cli.cmd.auth;
+
+import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand;
+import org.onap.cli.fw.schema.OnapCommandSchema;
+
+@OnapCommandSchema(schema = "basic-login-onap-policy-elalto.yaml")
+public class OnapPolicyBasicAuthLoginCommandElalto extends BasicAuthLoginCommand {
+}
diff --git a/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java
new file mode 100644
index 00000000..f0babea1
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandElalto.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2019 Huawei Technologies Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.cli.cmd.auth;
+
+import org.onap.cli.fw.http.cmd.BasicAuthLoginCommand;
+import org.onap.cli.fw.schema.OnapCommandSchema;
+
+@OnapCommandSchema(schema = "basic-login-onap-sdc-elalto.yaml")
+public class OnapSdcBasicAuthLoginCommandElalto extends BasicAuthLoginCommand {
+}
diff --git a/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand
new file mode 100644
index 00000000..0447158b
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand
@@ -0,0 +1,18 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+org.onap.cli.cmd.auth.OnapBasicAuthLoginCommandElalto
+org.onap.cli.cmd.auth.OnapBasicAuthLogoutCommandElalto
+org.onap.cli.cmd.auth.OnapSdcBasicAuthLoginCommandElalto
+org.onap.cli.cmd.auth.OnapPolicyBasicAuthLoginCommandElalto
diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml
new file mode 100644
index 00000000..ccd67f55
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-elalto.yaml
@@ -0,0 +1,43 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: basic-login
+
+description: ONAP basic login auth command
+
+info:
+ product: onap-elalto
+ service: basic-auth
+ type: auth
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: portrait
+ attributes:
+ - name: Authorization
+ description: Authorization
+ scope: short
+ type: string
+ - name: X-TransactionId
+ description: X-TransactionId
+ scope: short
+ type: string
+ default_value: req-$s{uuid}
+ - name: X-FromAppId
+ description: X-FromAppId
+ scope: short
+ type: string
+ default_value: ONAP CLI
diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml
new file mode 100644
index 00000000..0916c202
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-policy-elalto.yaml
@@ -0,0 +1,45 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: policy-basic-login
+
+description: ONAP basic login auth command
+
+
+info:
+ product: onap-elalto
+ service: policy-basic-auth
+ type: auth
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: portrait
+ attributes:
+ - name: Authorization
+ description: Authorization
+ scope: short
+ type: string
+ - name: Environment
+ description: Environment
+ scope: short
+ type: string
+ default_value: TEST
+ - name: ClientAuth
+ description: Client Auth
+ scope: short
+ type: string
+ default_value: cHl0aG9uOnRlc3Q=
diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml
new file mode 100644
index 00000000..55006d54
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-elalto.yaml
@@ -0,0 +1,50 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: sdc-basic-login
+
+description: ONAP basic login auth command
+
+
+info:
+ product: onap-elalto
+ service: sdc-basic-auth
+ type: auth
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: portrait
+ attributes:
+ - name: Authorization
+ description: Authorization
+ scope: short
+ type: string
+ - name: X-TransactionId
+ description: X-TransactionId
+ scope: short
+ type: string
+ default_value: req-$s{uuid}
+ - name: X-FromAppId
+ description: X-FromAppId
+ scope: short
+ type: string
+ default_value: ONAP CLI
+ - name: USER_ID
+ description: USER_ID for sdc
+ scope: short
+ type: string
+ default_value: ${host-username} \ No newline at end of file
diff --git a/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml
new file mode 100644
index 00000000..76789b0d
--- /dev/null
+++ b/products/onap-elalto/auth/src/main/resources/open-cli-schema/basic-logout-onap-elalto.yaml
@@ -0,0 +1,34 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: basic-logout
+
+description: ONAP basic logout auth command
+
+info:
+ product: onap-elalto
+ service: basic-auth
+ type: auth
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: host-username
+ is_include: false
+ - name: host-password
+ is_include: false
+ - name: no-auth
+ is_include: false \ No newline at end of file