Skip to main content

A Python client for authenticating with the easySSP Integration APIs.

Project description

🔐 easySSP Authentication Python Client

This module provides a simple and secure way to authenticate with the easySSP API using JWT tokens. It performs the initial login with username and password, requests the access and refresh tokens from the authentication endpoint, and renews the access token when it expires using the refresh token.


🚀 Features

  • 🔑 Retrieves JSON Web Tokens (JWTs) based on user credentials
  • 🗂️ Securely manages credentials and access/refresh tokens
  • ♻️ Automatically renews expired access tokens

🔐 Access Requirements

  • Requires an easySSP Pro or Process Edition account

🛠️ How It Works

  1. Create the AuthClient instance
from easyssp_auth.authentication import AuthClient, AuthError

try: 
    auth_client = AuthClient("your_easyssp_username", "your_easyssp_password", "your-client-id")
except AuthError as ex:
    print(ex)
  1. Retrieve the access token
access_token = auth_client.get_access_token()
  1. Authenticate your requests
    You can use the retrieved access token in the Authorization header of your requests to authenticate with the easySSP API.

📦 Installation

pip install easyssp-auth-client

Or clone and install from source:

git clone https://github.com/exxcellent/easyssp-auth-client-python.git
cd easyssp-auth-client-python
pip install -e .

📁 Project Structure

easyssp_auth/
├── __init__.py
├── authentication.py      # Core logic for obtaining and storing the token

🛠️ Technical Requirements

  • Python 3.11+

Install dependencies using uv:

pip install uv
uv sync

🤝 Contributing

This module is maintained as part of the easySSP ecosystem. If you find issues or want to suggest improvements, please open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License.

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

easyssp_auth_client-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

easyssp_auth_client-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file easyssp_auth_client-1.0.0.tar.gz.

File metadata

  • Download URL: easyssp_auth_client-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for easyssp_auth_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cf7a48c40a07bb0fe1e46e8350325d01569ce2a36b9bbe5fe4918713b70fff4d
MD5 7bf799ab1edf9621dd38f4164ad4ef29
BLAKE2b-256 89faf8dbbab34eb6bd53518013cdc0548f323e2a1024fc1a93fcc19c5710c118

See more details on using hashes here.

File details

Details for the file easyssp_auth_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easyssp_auth_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56cb8dd28f93d841ba555572c4212487b8755295ddbb0418c4c50db797886268
MD5 96da5fb17c92003f71d11814dbeb62f0
BLAKE2b-256 00a78d3e3a3d10ef673ad4d652f3d63431d6cde7b2ae335f2b6cecb06ce0670c

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