Tanker identity library
Project description
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. You can access it from the Tanker dashboard.
- app_secret
The app secret. A 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)
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. You can access it from the Tanker dashboard.
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
File details
Details for the file tankersdk-identity-1.3.4b1.tar.gz
.
File metadata
- Download URL: tankersdk-identity-1.3.4b1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd3c5b81744f1f8413da1632f1bcbb685f639599e86f1f89d3b2d56a0097cd0 |
|
MD5 | 4f1f346df77526b301fbffccb041da67 |
|
BLAKE2b-256 | bfa5e68e043ddddcc3d35b6f5909f56d7cfe9967b71d8dcddc8f7bafc7cd87c2 |
File details
Details for the file tankersdk_identity-1.3.4b1-py3-none-any.whl
.
File metadata
- Download URL: tankersdk_identity-1.3.4b1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.7.5 Linux/5.3.0-42-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654d0f71c4a7f76b8302bd32ada862ccfdfa7694b96d1dde3be5c1907497fe76 |
|
MD5 | adc444f9a14f9f4e61a6131961a05294 |
|
BLAKE2b-256 | 5e3ec1c1b70bac39af20e7b9c6e9e02f302ea53aa239d33ced4fa4aeb5629fdc |