Conditions | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
21 | def __init__(self, config): |
||
22 | super(AuthBaseAction, self).__init__(config) |
||
23 | |||
24 | try: |
||
25 | self.ikey = self.config['auth_ikey'] |
||
26 | self.skey = self.config['auth_skey'] |
||
27 | self.host = self.config['auth_host'] |
||
28 | except KeyError: |
||
29 | raise ValueError("Duo config not found in config.") |
||
30 | |||
31 | self.duo_auth = duo_client.Auth(ikey=self.ikey, |
||
32 | skey=self.skey, |
||
33 | host=self.host) |
||
34 | |||
37 |