Skip to main content

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
ORG_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",
    org_slug="xyz",
    client_id="xyz-backend",
    client_secret="super-secret",
)

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

iam_client-0.1.9.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

iam_client-0.1.9-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file iam_client-0.1.9.tar.gz.

File metadata

  • Download URL: iam_client-0.1.9.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for iam_client-0.1.9.tar.gz
Algorithm Hash digest
SHA256 aefe25d2ae3eba393bb53d43559861f952509a1e17d86e2f594bb7cba8532a5f
MD5 47f70eef77b8375e8688aa45f2a6b918
BLAKE2b-256 f321d37fdcaa15fc99963ff2959a20ea97648d26e6cfb3771b3c6b6d55d81c29

See more details on using hashes here.

File details

Details for the file iam_client-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: iam_client-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for iam_client-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5275e3e122f15a93da3eeb99ab92561bbd8541ea98c9ce9e94ebf7d0fa4d6f
MD5 f1a4dd445bc34210606194195a28654a
BLAKE2b-256 eec085f6a068a53689c35f1a5587dfbe4b15b9781e29318bfab321dbf311267f

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