Skip to main content

A general-purpose Service-to-Service (S2S) connector for obtaining bearer tokens for authentication in service-to-service communication.

Project description

s2s-connector

A general-purpose Service-to-Service (S2S) connector for obtaining bearer tokens for authentication in service-to-service communication.

Installation

Install the package via pip:

pip install s2s-connector

Usage

import asyncio
from s2s_connector import S2SConnector

async def main():
    connector = S2SConnector(
        auth_url="https://auth.example.com",
        tenant="your_tenant",
        client_id="your_client_id",
        client_secret="your_client_secret"
    )

    token = await connector.get_token()
    print(f"Access Token: {token}")

asyncio.run(main())

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

s2s_connector-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

s2s_connector-0.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file s2s_connector-0.0.1.tar.gz.

File metadata

  • Download URL: s2s_connector-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.0.0

File hashes

Hashes for s2s_connector-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e345079ad3f632758bda7984328209ed51fbe26c8a7adccfc14272537d9da1cf
MD5 2258f905c136115a41191b61a15f8aa6
BLAKE2b-256 93ac56e32728600b2c680140a2dd5ef163f9868524f6522ba5bdf13b337a6a9d

See more details on using hashes here.

File details

Details for the file s2s_connector-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: s2s_connector-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/24.0.0

File hashes

Hashes for s2s_connector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6513d510dcf9212763d1a1cb5513ecb3c37cfcc40ad30cfb99b1ccce5442dca
MD5 30730ab7bc12836025d0a36869122917
BLAKE2b-256 b5f380a52fb59cafb39bf95ea5341e585a1976b59156e446dd58ce730b0d3c00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page