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. 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", 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
Hashes for tankersdk-identity-3.0.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f005e6b05f0b5dce02515637875cb120cc2d0760d1185543d93e4afc7c4f33 |
|
MD5 | 47bd33718e6405ecf5932c236ef0fffb |
|
BLAKE2b-256 | 75592b7d7ee5cb6af692251571746752f1a96e24d69e345df9fdbdd87d73fe70 |
Hashes for tankersdk_identity-3.0.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0bce984a25ecf31610555a9a2a8b5b469a17548ead7a5a9b6acc8ec9745c82 |
|
MD5 | 1cdc5feb51304ef6afe45cad80350b7e |
|
BLAKE2b-256 | 7525b839b560591efabb3b3162f2aa4370e8379dd849cc51afe107bb94c06b4a |