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
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
s2s_connector-0.0.2.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file s2s_connector-0.0.2.tar.gz
.
File metadata
- Download URL: s2s_connector-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d769663860b4b3249d9479fa89f5da4e39b273cbc342139386131b5fe83aeff6 |
|
MD5 | e4822bb6325c169c47fce117490ca190 |
|
BLAKE2b-256 | 4e03dbe142b3daf0f134f8fed55490d0938a5bf86c0928e11cdf5989f1209a01 |
File details
Details for the file s2s_connector-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: s2s_connector-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60977ad3af11b1dae7ebbdf3bfc62b5a43a52008e336be8495437918a77bda7d |
|
MD5 | f8f2640022d50d0c13b506036dc9ff0b |
|
BLAKE2b-256 | 9a2ec534204afeebbf378bbd3c3b8796ce656be48c04cfb78b2cd64275ce8efc |