Skip to main content

Official IAM client for Kavach IAM

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kavach_iam_client-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

kavach_iam_client-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file kavach_iam_client-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for kavach_iam_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a64136b196d42de978a9a135908692d589b24c68fb26cd427a1915870c08bea3
MD5 32261fcc7e727f04ff50cd787678bb76
BLAKE2b-256 862ebb018f87792cf6b5bc50a56e12719f9559b08181764ad65ca6f691a1fbb3

See more details on using hashes here.

File details

Details for the file kavach_iam_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kavach_iam_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e90b979aaca3c8f5920388bb329584f992aef9cb9f3f0aec4d8f11fa40b4f03
MD5 0c56c18e0c95432425eca9823fe052e7
BLAKE2b-256 46d469d095f9c080430e0bd7693a59c55ac5e06a99175f450e0d823b648a1183

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