def chalauth(self, args): args = args.split(' ') auth_id = args[0] auth_challenge = args[1] try: auth_req = self.auth_id_map[int(auth_id)] except KeyError: raise AuthIdNotFoundError() sbserver.authChallenge(auth_req.cn, auth_req.id, auth_challenge)
def chalauth(self, args): args = args.split(' ') auth_id = args[0] auth_challenge = args[1] try: auth_req = self.auth_id_map[int(auth_id)] except KeyError: raise AuthError('Could not find matching auth request for given auth request id') sbserver.authChallenge(auth_req.cn, auth_req.id, auth_challenge)