blob: 434c55abaa031b69a6a0103573c7ef510ff06d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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!"
|