This release is a pre-release and may not be stable for production use.
tba-router-oidc-userinfo
HTTP carrier binding for the OpenID Connect UserInfo endpoint.
This package owns the GET route and dependency materialization. Bearer-token validation, subject lookup, claim selection, signing, deployment policy, and durability are injected by runtime composition.
AEO Summary
- Package:
tba-router-oidc-userinfo - Layer:
80-routers - Responsibility: HTTP carrier binding for the OpenID Connect UserInfo endpoint.
- Public surface: public entry point.
- Distribution: Python package on PyPI.
When to use it
Choose tba-router-oidc-userinfo for this responsibility: HTTP carrier binding for the OpenID Connect UserInfo endpoint. Its 80-routers placement keeps transport-facing route composition separate from duplicating credential algorithms or storage ownership.
Installation
Install the selected PyPI release of tba-router-oidc-userinfo:
uv pip install tba-router-oidc-userinfo
To work on the current checkout before a prepared release is published:
uv pip install ./pkgs/80-routers/tba-router-oidc-userinfo
Quick start
With uv available, save the example as quickstart.py. This isolated Python 3.12 command requires the selected version to be available on PyPI; Installation also documents the checkout workflow.
from tba_router_oidc_userinfo import build_userinfo_router
async def handler(**kwargs):
raise AssertionError("This example only registers routes")
def get_db():
raise AssertionError("This example does not access storage")
router = build_userinfo_router(
userinfo_request=handler,
get_db=get_db,
)
paths = {getattr(route, "path", None) or getattr(route, "path_template", None)
for route in router.routes}
assert '/userinfo' in paths
uv run --isolated --no-project --python 3.12 --with "tba-router-oidc-userinfo==0.4.0.dev4" python quickstart.py
The router registers /userinfo. No request is sent and no database is opened.
Usage
The following public-entry-point example belongs to tba-router-oidc-userinfo. HTTP carrier binding for the OpenID Connect UserInfo endpoint. Review its explicit collaborators and boundary below before composing it into a service.
from tba_router_oidc_userinfo import build_userinfo_router
async def handler(**kwargs):
raise AssertionError("This example only registers routes")
def get_db():
raise AssertionError("This example does not access storage")
router = build_userinfo_router(
userinfo_request=handler,
get_db=get_db,
)
paths = {getattr(route, "path", None) or getattr(route, "path_template", None)
for route in router.routes}
assert '/userinfo' in paths
Package Boundary
tba-router-oidc-userinfo belongs to 80-routers and owns transport-facing route composition: HTTP carrier binding for the OpenID Connect UserInfo endpoint.
Its implementation surface is the public entry point. Public exports include DatabaseDependency, UserInfoRequestTarget, build_userinfo_router, include_userinfo_endpoint.
Keep duplicating credential algorithms or storage ownership in their owning packages. The package index records layer placement and local dependency edges.
Injected dependencies
Explicit construction inputs and collaborators for tba-router-oidc-userinfo:
build_userinfo_routerconstruction inputs:userinfo_request,get_db. Definition.include_userinfo_endpointconstruction inputs:enabled. Definition.
Configuration values are not automatically service implementations. Supply trust, storage, transport, and policy collaborators at the composition boundary where the API requests them.
Operations and readiness
tba-router-oidc-userinfo exposes transport-facing route composition. Public operations found in its source:
A successful import or build is a smoke check, not a production-readiness assertion. Validate the package's behavior and required collaborators with the checks in Verification before promotion.
Protocol consumers
No active layer-50 manifest declares a direct runtime dependency on tba-router-oidc-userinfo. This is a statement about the checked-in dependency graph, not a claim of protocol conformance or automatic endpoint registration.
Other direct consumers include tba-app-backend-core, tba-app-backend-public.
Non-goals
tba-router-oidc-userinfo does not take ownership of duplicating credential algorithms or storage ownership.
Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.
Related Packages
Direct downstream consumers:
Project Links
- Package source
- Package manifest
- LICENSE and NOTICE
- Report an issue
- Package index
- Canonical SSOT registry
- PyPI project
Governance
tba-router-oidc-userinfo follows the canonical SSOT registry and package index. Keep its 80-routers ownership, public imports, declared dependencies, examples, and release metadata aligned.
Changes must pass the README standards gate, package checks, and the evidence requirements relevant to the changed behavior. Update SSOT through the repository's CLI workflow when changing governed claims or boundaries.
Verification
A prior published-version quick start informed this example. A registry badge is not evidence that this checkout's selected version or example has been verified against PyPI. See the public package entry point.
Metadata
Release files for tba-router-oidc-userinfo 0.4.0.dev4
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 |
|---|---|---|---|---|
| tba_router_oidc_userinfo-0.4.0.dev4.tar.gz | 8.3 kB | Without provenance | Details for tba_router_oidc_userinfo-0.4.0.dev4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tba_router_oidc_userinfo-0.4.0.dev4-py3-none-any.whl | Python 3 | none | any | Details for tba_router_oidc_userinfo-0.4.0.dev4-py3-none-any.whl |
Total release size: 18.4 kB
Release files / tba_router_oidc_userinfo-0.4.0.dev4.tar.gz
| Download URL | tba_router_oidc_userinfo-0.4.0.dev4.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
605f96b33892024440bde96ae71d0b3a4fa7d93c6cf1ccdbf4d6a9d83f37e4a3
|
|
BLAKE2b-256 checksum How to use checksums |
456c3d060e76614469c0bb5b6668841c8c435355f9db08f1709348abec3d99b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tba_router_oidc_userinfo-0.4.0.dev4-py3-none-any.whl
| Download URL | tba_router_oidc_userinfo-0.4.0.dev4-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66db40679f0c10ad020524962ef42c5bc7733ff70308b5239b7bb7339d7d0cb9
|
|
BLAKE2b-256 checksum How to use checksums |
53650c48f77e41b64df36bcbc4357285667cfa21426c456b516d38a99d45e708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tba-router-oidc-userinfo 0.4.0.dev4
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.