Skip to main content

Official Python SDK for TSP Scale OAuth Login

Project description

tspscale-login

Official Python SDK for TSP Scale Authentication.

🚀 Quick Start (Zero-Config)

Verify TSP Scale OAuth 2.0 access tokens securely in your Python backends (Django, Flask, FastAPI).

Installation

pip install tspscale-login

🛠️ Usage

You can use the TSPClient to securely exchange a token for the user's TSP Scale profile.

from tspscale_login import TSPClient, TSPAuthException

# Initialize the client
client = TSPClient()

def verify_user_login(access_token):
    try:
        # Calls the TSP Scale API to securely verify the token
        user_profile = client.verify_token(access_token)
        
        print(f"Logged in as: {user_profile['email']}")
        return user_profile
        
    except TSPAuthException as error:
        print(f"Authentication failed: {str(error)}")
        return None

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

tspscale_login-1.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

tspscale_login-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file tspscale_login-1.0.2.tar.gz.

File metadata

  • Download URL: tspscale_login-1.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for tspscale_login-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b37564372f2346f99066f630892829e927b3be71e6069c4b5917f1d0e5f2a716
MD5 4237eeb19c95e040097dd7b29e38b75d
BLAKE2b-256 ee2561ea4242df6a4f1eb95189991592fca1ce0a06607767e0e7b5d1d5f641f1

See more details on using hashes here.

File details

Details for the file tspscale_login-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tspscale_login-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for tspscale_login-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71efd5357e9154caa8a30d65cc38739cf418d951623ae714f4f4d172b00cfa12
MD5 2691e56cfb4b8639721d43779c7887a1
BLAKE2b-256 53740c4c7bd747de9ca4216c89f9fc03ec3d5b6d169129cc49816d3d3bd7e46a

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