IAM client for services
Project description
iam-client
A lightweight, production-ready IAM client SDK for backend services.
This package allows backend services to securely communicate with the Identity and Access Management (IAM) system using service credentials.
✨ Features
- Service-to-service authentication
- Automatic service token retrieval
- Token introspection
- Fetch user details by user ID
- Clean, minimal Python API
- Designed for FastAPI backends
📦 Installation
Install directly from GitHub
pip install git+https://github.com/YOUR_ORG/iam-client.git
Install directly from GitHub
pip install git+https://github.com/YOUR_ORG/iam-client.git@v0.1.0
✨ Configuration
Set the following environment variables in the consuming backend service:
IAM_BASE_URL=https://iam.xyz.com
TENANT_SLUG=xyz
IAM_CLIENT_ID=xyz-backend
IAM_CLIENT_SECRET=super-secret
✨ Usage
Create IAM client (once per service)
from iam_client.client import IAMClient
iam = IAMClient(
base_url="https://iam.xyz.com",
tenant_slug="xyz",
client_id="xyz-backend",
client_secret="super-secret",
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iam_client-0.1.7.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iam_client-0.1.7.tar.gz.
File metadata
- Download URL: iam_client-0.1.7.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c786db5adf432dc84066c548fdc3c102a75d922c1cd7fdb3fc40222c60b12b
|
|
| MD5 |
04be38f864cb441fd7a32bad9ae04bf6
|
|
| BLAKE2b-256 |
04835daece9a210bbc85314709c630acea294b002514b521143a5f1e87e3afd8
|
File details
Details for the file iam_client-0.1.7-py3-none-any.whl.
File metadata
- Download URL: iam_client-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38acc006689b64f54d95283100de8a9d9a5b04faf4d824bf0629af552561c8d
|
|
| MD5 |
1d1f2635eb5ae0b135654f6c9217c0c1
|
|
| BLAKE2b-256 |
1b223dc54e4fa809f84e0d717673475306b1c4b0a1b12bde388ac838c3726abb
|