Skip to main content

Tanker identity library

Project description

https://tanker.io/images/github-logo.png

Identity SDK

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 https://img.shields.io/badge/deps%20scanning-pyup.io-green

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.

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.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

tankersdk_identity-3.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tankersdk-identity-3.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.6.14 Linux/5.8.0-1039-azure

File hashes

Hashes for tankersdk-identity-3.1.0.tar.gz
Algorithm Hash digest
SHA256 d38f6aaedab554f3904f9fcbf47f75da670e118590881e07692fa8c9d5caeb3d
MD5 b6f54931903abed1ee9927546e36a255
BLAKE2b-256 48a1069125f3ab8c38beb4b140f3b69bb1cbd061731ca6706b9b6107bffcd978

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tankersdk_identity-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08c5507185df78e24c0180b42eb6c4c1b7811b9be13381734b5b5f5bbedc3ce5
MD5 493ad3442d30e3804652b9cde6277ad8
BLAKE2b-256 07ea0b2ecb17ba1140b63748f0c8909a2d29bea2991448f28add3a1a43e05ede

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