This release is a pre-release and may not be stable for production use.
Swarmauri Auth IDP Google
Google OAuth 2.0 / OAuth 2.1 / OIDC 1.0 identity providers packaged for Swarmauri deployments.
Features
- PKCE-enabled Authorization Code flows with HMAC-signed state payloads.
- Discovery-driven OAuth 2.1/OIDC login that validates ID tokens and nonces.
- Profile hydration via Google UserInfo endpoints for normalized downstream payloads.
- Retry-aware HTTP integration tuned for Google Identity services.
- ComponentBase-compatible models registered under
swarmauri.auth_idpentry points.
Installation
pip
pip install swarmauri_auth_idp_google
uv (project)
uv add swarmauri_auth_idp_google
uv (environment)
uv pip install swarmauri_auth_idp_google
Usage
import asyncio
from pydantic import SecretBytes, SecretStr
from swarmauri_auth_idp_google import GoogleOAuth20Login
login = GoogleOAuth20Login(
client_id="google-client-id",
client_secret=SecretStr("google-client-secret"),
redirect_uri="https://app.example.com/callback",
state_secret=SecretBytes(b"replace-with-random-bytes"),
)
async def run_flow() -> None:
auth = await login.auth_url()
print(auth["url"])
# Redirect the browser to `auth["url"]`, then capture the callback `code` and `state`.
# Later, call `login.exchange_and_identity(code, state)` inside your callback handler.
asyncio.run(run_flow())
Workflow Summary
- Call
auth_url()and redirect the browser to the returned URL. - Persist the
stateand verify it during the callback handler. - Exchange the authorization code through
exchange_and_identity()to obtain tokens and profile metadata.
Entry Points
swarmauri.auth_idp:GoogleOAuth20Loginswarmauri.auth_idp:GoogleOAuth21Loginswarmauri.auth_idp:GoogleOIDC10Login
Contributing
To contribute to swarmauri-sdk, review the guidelines for contributing which cover development workflow, testing, and coding standards.
Metadata
Release files for swarmauri_auth_idp_google 0.11.0.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swarmauri_auth_idp_google-0.11.0.dev2.tar.gz | 9.3 kB | Without provenance | Details for swarmauri_auth_idp_google-0.11.0.dev2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_auth_idp_google-0.11.0.dev2-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_auth_idp_google-0.11.0.dev2-py3-none-any.whl |
Total release size: 22.3 kB
Release files / swarmauri_auth_idp_google-0.11.0.dev2.tar.gz
| Download URL | swarmauri_auth_idp_google-0.11.0.dev2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2627bfde8d8c2d02eda3e0dc0fd2ee1281e5cbfbb64f54e390f8648d42b09078
|
|
BLAKE2b-256 checksum How to use checksums |
d964877c953a3f98887d0db2c217f2d6a6e1dc1dfdd092ccc743f8bbdeccf39c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / swarmauri_auth_idp_google-0.11.0.dev2-py3-none-any.whl
| Download URL | swarmauri_auth_idp_google-0.11.0.dev2-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b05147465e95c932399e78f2b7ae1220975e67d683f5cda4589c5e77248ac2a
|
|
BLAKE2b-256 checksum How to use checksums |
6b7fda56e881a2a9b64af4e47881ec6836ef6d6dba8ecd0fc04b36c82cfb2cbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for swarmauri_auth_idp_google 0.11.0.dev2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.