Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Tanker identity library

Project description

Tanker identity generation in Python for the Tanker SDK.

https://github.com/TankerHQ/identity-python/workflows/Tests/badge.svg https://img.shields.io/pypi/v/tankersdk_identity.svg https://img.shields.io/codecov/c/github/TankerHQ/identity-python.svg?label=Coverage

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.
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.

Files for tankersdk-identity, version 1.3.4
Filename, size File type Python version Upload date Hashes
Filename, size tankersdk_identity-1.3.4-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tankersdk-identity-1.3.4.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page