aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/auth/src/main/resources
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-20 16:17:43 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:38:23 +0530
commite3fbe2ce554c851aee4cb3d047ec08510ed4d382 (patch)
tree10e8b8f1be9b8eaa261d296dabf0e56d75e65db5 /plugins/auth/src/main/resources
parent1ecc057676a6ef788d5193261abd98bd364f10c0 (diff)
Basic auth login and logout command
Issue-Id: CLI-66 Change-Id: Ief44cd0d12d7814c029129ff4d8a384dc36c369f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/auth/src/main/resources')
-rw-r--r--plugins/auth/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand3
-rw-r--r--plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml31
-rw-r--r--plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml36
-rw-r--r--plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml13
4 files changed, 83 insertions, 0 deletions
diff --git a/plugins/auth/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand b/plugins/auth/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand
new file mode 100644
index 00000000..7594b30f
--- /dev/null
+++ b/plugins/auth/src/main/resources/META-INF/services/org.onap.cli.fw.OnapCommand
@@ -0,0 +1,3 @@
+org.onap.cli.cmd.auth.OnapBasicAuthLoginCommand
+org.onap.cli.cmd.auth.OnapBasicAuthLogoutCommand
+org.onap.cli.cmd.auth.OnapSdcBasicAuthLoginCommand \ No newline at end of file
diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml
new file mode 100644
index 00000000..cb17ff12
--- /dev/null
+++ b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml
@@ -0,0 +1,31 @@
+open_cli_schema_version: 1.0
+
+name: basic-login
+
+description: ONAP basic login auth command
+
+version: onap-1.1
+
+type: auth
+
+service:
+ name: onap
+ version: v1
+
+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/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml
new file mode 100644
index 00000000..ca07dca2
--- /dev/null
+++ b/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml
@@ -0,0 +1,36 @@
+open_cli_schema_version: 1.0
+
+name: sdc-basic-login
+
+description: ONAP basic login auth command
+
+version: onap-1.1
+
+type: auth
+
+service:
+ name: onap
+ version: v1
+
+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/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml b/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml
new file mode 100644
index 00000000..46a4bea7
--- /dev/null
+++ b/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml
@@ -0,0 +1,13 @@
+open_cli_schema_version: 1.0
+
+name: basic-logout
+
+description: ONAP basic logout auth command
+
+version: onap-1.1
+
+type: auth
+
+service:
+ name: onap
+ version: v1