Skip to main content

Python Auth SDK for smbCloud, built from Rust.

Project description

smbCloud SDK Auth

Python authentication SDK for smbCloud, built from Rust.

About

smbcloud-sdk-auth wraps the shared Rust Auth crate through PyO3 and maturin so Python apps can use the same tenant auth contract as the browser SDK.

Current exported Python APIs include:

  • signup_with_client
  • login_with_client
  • logout_with_client
  • me_with_client
  • remove_with_client
  • Environment
  • AuthClient

Install

pip install smbcloud-sdk-auth

Usage

from smbcloud_auth import AuthClient, Environment

client = AuthClient(
    env=Environment.PRODUCTION,
    app_id="app-id",
    app_secret="app-secret",
)

signup = client.signup("name@example.com", "password123")
login = client.login("name@example.com", "password123")
user = client.me(login["access_token"])

Local packaging

From sdk/python:

maturin build

License

MIT

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

smbcloud_sdk_auth-0.3.33.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smbcloud_sdk_auth-0.3.33-cp38-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file smbcloud_sdk_auth-0.3.33.tar.gz.

File metadata

  • Download URL: smbcloud_sdk_auth-0.3.33.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for smbcloud_sdk_auth-0.3.33.tar.gz
Algorithm Hash digest
SHA256 9ba2dd2fab1b399262fcf0d567e2806983815f9973733d9453ab6af66cf38bee
MD5 24c2c10a746714639054c0da6c85dea1
BLAKE2b-256 ba80b542fc9731b2e746c5a7a6095bb463c5ba420244e9dc6adb8e6b03fb55d4

See more details on using hashes here.

File details

Details for the file smbcloud_sdk_auth-0.3.33-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smbcloud_sdk_auth-0.3.33-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b711b8610a9ddd3112e7a0cf7d94d1918f74d65b185174ca011e27335014cd1
MD5 d7f4c73308398f3ce4f8be773616644c
BLAKE2b-256 6afb12129fbb58e3d7fd97535518c71d6044ab2a1d5e7825cf45521dc72e86ae

See more details on using hashes here.

Supported by

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