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.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8351d50a4e3e892c0fc175071b149b4974e991a1b150925c78cf7fde9dc0aa |
|
MD5 | e02ce24eecc6cc35f2178f1c5466a825 |
|
BLAKE2b-256 | 21124eb86afd181a0c973724527f19023b26424da7d943cd747b48334e44a23b |
Hashes for tankersdk_identity-3.3.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e21aa0bcb4188fe158cd1d2cfc385e673f5e468a9a84676a4d69d0fcaf56b69 |
|
MD5 | 7bd2eed4d118716692846304de088268 |
|
BLAKE2b-256 | 75c5a27f0c377e5f09c4b94218cfc96b7295fdd4e74faa75834e08ef597ecc82 |