| Conditions | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 21 | def __init__(self, config): |
||
| 22 | super(AuthAction, self).__init__(config) |
||
| 23 | |||
|
|
|||
| 24 | try: |
||
| 25 | ikey = self.config['auth']['ikey'] |
||
| 26 | skey = self.config['auth']['skey'] |
||
| 27 | 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=ikey, |
||
| 32 | skey=skey, |
||
| 33 | host=host) |
||
| 34 |