diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-09 16:35:22 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-03-09 18:06:09 +0800 |
commit | 1a95c1e6b33d9b3efcfd92e1de64feee7e9b5c68 (patch) | |
tree | 61488ece232657c6693425eabc07ad6ca4b3af8e /testapi/testapi-client/testapiclient/cli/auth.py | |
parent | cc29ae1cd41d1f403511730d5ba44dded967fb12 (diff) |
restructure testapiclient project
Change-Id: I13d24ce7b436f203a66fe14f4930e58b3ab1193c
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/testapi-client/testapiclient/cli/auth.py')
-rw-r--r-- | testapi/testapi-client/testapiclient/cli/auth.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testapi/testapi-client/testapiclient/cli/auth.py b/testapi/testapi-client/testapiclient/cli/auth.py new file mode 100644 index 0000000..434c55a --- /dev/null +++ b/testapi/testapi-client/testapiclient/cli/auth.py @@ -0,0 +1,14 @@ +from testapiclient.utils import command +from testapiclient.utils import identity + + +class Auth(command.Command): + "Handle Authentication for users" + + def get_parser(self, prog_name): + parser = super(Auth, self).get_parser(prog_name) + return parser + + @identity.authenticate + def take_action(self, parsed_args): + print "Authentication has been successful!" |