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

All Samples(18)  |  Call(0)  |  Derive(9)  |  Import(9)

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_totp/models.py   django-otp(Download)
from django.db import models
 
from django_otp.models import Device
from django_otp.oath import TOTP
from django_otp.util import random_hex, hex_validator
 
 
class TOTPDevice(Device):

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_static/models.py   django-otp(Download)
from django.db import models
 
from django_otp.models import Device
 
 
class StaticDevice(Device):

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_hotp/models.py   django-otp(Download)
from binascii import unhexlify
 
from django.db import models
 
from django_otp.models import Device
from django_otp.oath import hotp
from django_otp.util import random_hex, hex_validator
 
 
class HOTPDevice(Device):

src/d/j/django-otp-0.2.7/django_otp/plugins/otp_email/models.py   django-otp(Download)
from django.template.loader import render_to_string
 
from django_otp.models import Device
from django_otp.oath import totp
from django_otp.util import hex_validator, random_hex
 
from .conf import settings
 
 
class EmailDevice(Device):

src/i/d/identity.gentoo.org-HEAD/okupy/otp/totp/models.py   identity.gentoo.org(Download)
# vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python
 
from django_otp import oath
from django_otp.models import Device
 
class TOTPDevice(Device):
    """
    OTP device that verifies against a TOTP-generated token.
    """
 

src/i/d/identity.gentoo.org-HEAD/okupy/otp/sotp/models.py   identity.gentoo.org(Download)
# vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python
 
from django_otp.models import Device
 
from okupy.accounts.models import LDAPUser
 
import random
 
 
class SOTPDevice(Device):

src/d/j/django-otp-yubikey-0.2.0/otp_yubikey/models.py   django-otp-yubikey(Download)
from django.db import models
 
from django_otp.models import Device
from django_otp.util import hex_validator, random_hex
from yubiotp.client import YubiClient10, YubiClient11, YubiClient20
from yubiotp.modhex import modhex
from yubiotp.otp import decode_otp
 
 
class YubikeyDevice(Device):
class RemoteYubikeyDevice(Device):
    """
    Represents a YubiKey device that is to be verified with a remote validation
    service. In order create these devices, you must have at least one
    :class:`~otp_yubikey.models.ValidationService` in the database.

src/d/j/django-otp-twilio-0.2.0/otp_twilio/models.py   django-otp-twilio(Download)
from django.db import models
 
from django_otp.models import Device
from django_otp.oath import totp
from django_otp.util import random_hex, hex_validator
class TwilioSMSDevice(Device):
    """
    A :class:`~django_otp.models.Device` that delivers codes via the Twilio SMS
    service. This uses TOTP to generate temporary tokens. We use the default 30
    second time step and allow a one step grace period.

src/d/j/django-otp-0.2.7/django_otp/__init__.py   django-otp(Download)
from django.db.models import get_apps, get_models
 
from django_otp.models import Device