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.0a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 214881aa4ecb95fa2c4030421c93f7540767c4d9b5a54fe62b8216851d036176 |
|
MD5 | dfd0c076f476e54aa0f6b62208ccb0d4 |
|
BLAKE2b-256 | 312d65aa1e559d22ede9fd75bbea09b43807a551f94aa6ee301faf11f49b18a8 |
Hashes for tankersdk_identity-3.0.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c4d47a4e04a26ad357b0eda9c28800adfb70a9c940c40fe93ed25d65188fc9 |
|
MD5 | a67e4effa26b317c0f58480cbba158a8 |
|
BLAKE2b-256 | f7937d6e39f5e379510009db777f337beec8769dc4d8dc2d33dd7d41383f9f8b |