Tanker identity library
Project description
Identity SDK
Tanker identity generation in Python for the Tanker SDK.
Installation
With pip
:
$ pip install tankersdk-identity
API
tankersdk_identity.create_identity(app_id, app_secret, user_id)
Create a new Tanker identity. This identity is secret and must only be given to a user who has been authenticated by your application. This identity is used by the Tanker client SDK to open a Tanker session
app_id
The app ID, must match the one used in the constructor of the Core SDK.
app_secret
The app secret, secret that you have saved right after the creation of your app.
user_id
The ID of a user in your application.
tankersdk_identity.create_provisional_identity(app_id, "email", email)
Create a Tanker provisional identity. It allows you to share a resource with a user who does not have an account in your application yet.
app_id
The app ID, must match the one used in the constructor of the Core SDK.
email
The email of the potential recipient of the resource.
tankersdk_identity.get_public_identity(identity)
Return the public identity from an identity. This public identity can be used by the Tanker client SDK to share encrypted resource.
identity
A secret identity.
Going further
Read more about identities in the Tanker guide.
Check the examples folder for usage examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tankersdk_identity-3.3.3a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9eb5cb376eeebd02c1e5bf58d244fddc43a0411bd8ee94099243e6028f06e59 |
|
MD5 | 79bb579cb61477e28f2da87d0ac435d4 |
|
BLAKE2b-256 | f2508d86af0a36a772efe0eeb3864c455620662732e7e623d114b7131c66f3cd |
Hashes for tankersdk_identity-3.3.3a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c845b6533d55e1ae30949039a125edf3764802498ee7aeb22d0edd30b863cc20 |
|
MD5 | 99db7a9e6f6d6b856d058966c098f0b7 |
|
BLAKE2b-256 | 78e75b1236dfd41e98a791a7c4f5bf42d7b5dfb0e9d7281d7f0d8dc6ffb33bb2 |