summaryrefslogtreecommitdiffstats
path: root/testapi/testapi-client/testapiclient/auth.py
blob: 3728498f60c1d21307ebb1aa825036ddc3a8bdee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from testapiclient import command
from testapiclient 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!"