Esempio n. 1
0
def simple_identity():
    return {
        'public_key': encode_key(PUBLIC_KEY),
        'drop_url': 'http://example.com',
        'alias': 'public alias',
    }
Esempio n. 2
0
def identity(db):
    identity = Identity(alias=ALIAS, drop_url='http://127.0.0.1:6000/qabel_user', public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity
Esempio n. 3
0
def simple_identity():
    return {
        'public_key': encode_key(b'this would be a public key (32b)'),
        'drop_url': 'http://example.com',
        'alias': 'public alias',
    }
Esempio n. 4
0
def identity(db):
    identity = Identity(alias=ALIAS,
                        drop_url='http://127.0.0.1:6000/qabel_user',
                        public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity
Esempio n. 5
0
def simple_identity():
    return {
        'public_key': encode_key(PUBLIC_KEY),
        'drop_url': 'http://localhost/1234567890123456789012345678901234567890123',
        'alias': 'public alias',
    }
Esempio n. 6
0
def identity(db):
    identity = Identity(alias=ALIAS, drop_url='http://localhost/1234567890123456789012345678901234567890123', public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity