Skip to main content

Tanker identity library

Project description

Tanker logo

License Actions status PyPi package Coverage Deps scanning

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tankersdk_identity-3.3.3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

tankersdk_identity-3.3.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file tankersdk_identity-3.3.3.tar.gz.

File metadata

  • Download URL: tankersdk_identity-3.3.3.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/5.15.0-1070-azure

File hashes

Hashes for tankersdk_identity-3.3.3.tar.gz
Algorithm Hash digest
SHA256 9e6efca47b2fbd1719a1084c97de81e729c61216df4951ea4db3a0176f020d44
MD5 29b21101892450df45ee7f6c34e9227e
BLAKE2b-256 5efb59282cfa31acb6d8b976b22e5c6ec93e94a28d925401e0b96f5aaae0a501

See more details on using hashes here.

File details

Details for the file tankersdk_identity-3.3.3-py3-none-any.whl.

File metadata

  • Download URL: tankersdk_identity-3.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/5.15.0-1070-azure

File hashes

Hashes for tankersdk_identity-3.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97255d468890511c5f0ff1d878a63603f61a58495252f68db62ea8668e096744
MD5 00227e45f0b9b0a0ecccf1d23dd75da6
BLAKE2b-256 881ecc32330200b0d6b9b8efae0ecf29c44d868713d7540c38a7c8f062e2eaa3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page