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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tankersdk-identity-3.0.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for tankersdk-identity-3.0.0.tar.gz
Algorithm Hash digest
SHA256 271547f7d1b5da89834f9a889bb0d8b85876fecb403d390e6186bfff26e95a8e
MD5 e6238975dfefd4e3ec2f49fdb7d5ff65
BLAKE2b-256 052c80fcf7160f15a195eaa64f994727e9ffc14c05cd6f8f410bd885a5a2eb25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tankersdk_identity-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for tankersdk_identity-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3282ca315aa99b8c24c6bbd8dfef1915bc53c28293cee234b15d0fbe51da7b2
MD5 36b268cbaceef0e0616c6fd226d2215c
BLAKE2b-256 c8b70a076579d8651163510baca999f0ad5239dffe491ba47556e548db8b756c

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