Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/l/i/LinOTP-2.6.1.1/linotp/lib/token.py   LinOTP(Download)
 
from linotp.lib.validate import ValidateToken
from linotp.lib.validate import create_challenge
from linotp.lib.validate import get_challenges
 
 
            if theToken.is_challenge_request(passw, user, options=options):
                (res, opt) = create_challenge(tokenList[0], options)
            else:
                raise ParameterError("Missing parameter: pass", id=905)
    if len(challenge_tokens) == 1:
        challenge_token = challenge_tokens[0]
        (_res, reply) = create_challenge(challenge_token, options=options)
        return (False, reply)
 

src/l/i/LinOTP-2.6.1.1/linotp/lib/tokens/ocra2token.py   LinOTP(Download)
from linotp.lib.ocra    import OcraSuite
 
from linotp.lib.validate import create_challenge
from linotp.lib.validate import get_challenges
from linotp.lib.reply   import create_img
 
            #self.createChallenge()
            (res, opt) = create_challenge(self, options=params)
 
            challenge = opt.get('challenge')
        try:
 
            (res, opt) = create_challenge(self, options={'messgae': data})
 
            transid = opt.get('transactionid')