Skip to main content

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.

Source Distribution

tankersdk-identity-1.3.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

tankersdk_identity-1.3.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file tankersdk-identity-1.3.4.tar.gz.

File metadata

  • Download URL: tankersdk-identity-1.3.4.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

Hashes for tankersdk-identity-1.3.4.tar.gz
Algorithm Hash digest
SHA256 69bb1346e6940321161e7042a78840f6d9e91eecfe7c206c58057db8696df253
MD5 484a301d5d505077b1abc49121609446
BLAKE2b-256 cf58dd9a636df84a40eec32fede23cb62c98887939edc9ed2f7f6b1c8a124f37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tankersdk_identity-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b1378387982cec558b1f1ee8d93ac5208b660065df64aed8d8dcda350baed9
MD5 f0b462c13b1202d9d549785ed32b2d44
BLAKE2b-256 2d8b5adfbac823a470d21cb90917964e7169efb02b1654592513247a75bc524d

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