def simple_identity(): return { 'public_key': encode_key(PUBLIC_KEY), 'drop_url': 'http://example.com', 'alias': 'public alias', }
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
def simple_identity(): return { 'public_key': encode_key(b'this would be a public key (32b)'), 'drop_url': 'http://example.com', 'alias': 'public alias', }
def simple_identity(): return { 'public_key': encode_key(PUBLIC_KEY), 'drop_url': 'http://localhost/1234567890123456789012345678901234567890123', 'alias': 'public alias', }
def identity(db): identity = Identity(alias=ALIAS, drop_url='http://localhost/1234567890123456789012345678901234567890123', public_key=encode_key(PUBLIC_KEY)) identity.save() return identity