tba-app-backend-core 0.4.0.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tba_app_backend_core/__init__.py +15 -0
- tba_app_backend_core/app.py +146 -0
- tba_app_backend_core/plugin.py +36 -0
- tba_app_backend_core/product.py +55 -0
- tba_app_backend_core/py.typed +0 -0
- tba_app_backend_core/surfaces/__init__.py +3 -0
- tba_app_backend_core/surfaces/admin_routes.py +353 -0
- tba_app_backend_core/surfaces/advanced_protocols.py +170 -0
- tba_app_backend_core/surfaces/auth_flows.py +16 -0
- tba_app_backend_core/surfaces/authorization_server_metadata_surface.py +37 -0
- tba_app_backend_core/surfaces/authorization_surface.py +15 -0
- tba_app_backend_core/surfaces/authz_surface.py +14 -0
- tba_app_backend_core/surfaces/client_registration_surface.py +366 -0
- tba_app_backend_core/surfaces/device_authorization_surface.py +44 -0
- tba_app_backend_core/surfaces/introspection_surface.py +247 -0
- tba_app_backend_core/surfaces/login_surface.py +25 -0
- tba_app_backend_core/surfaces/logout_surface.py +38 -0
- tba_app_backend_core/surfaces/oidc_discovery_surface.py +79 -0
- tba_app_backend_core/surfaces/par_surface.py +394 -0
- tba_app_backend_core/surfaces/protected_resource_metadata_surface.py +34 -0
- tba_app_backend_core/surfaces/resource_validation_metadata_surface.py +33 -0
- tba_app_backend_core/surfaces/revocation_surface.py +39 -0
- tba_app_backend_core/surfaces/standards_manifest.py +24 -0
- tba_app_backend_core/surfaces/surface_api.py +284 -0
- tba_app_backend_core/surfaces/token_exchange_surface.py +34 -0
- tba_app_backend_core/surfaces/token_surface.py +12 -0
- tba_app_backend_core/surfaces/userinfo_surface.py +34 -0
- tba_app_backend_core-0.4.0.dev2.dist-info/METADATA +60 -0
- tba_app_backend_core-0.4.0.dev2.dist-info/RECORD +30 -0
- tba_app_backend_core-0.4.0.dev2.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
# ruff: noqa: F403,F405
|
|
3
|
+
|
|
4
|
+
from typing import Any, Callable, Final
|
|
5
|
+
|
|
6
|
+
from tigrbl import TigrblApp, TigrblRouter
|
|
7
|
+
from tba_runtime_identity.deployment import ResolvedDeployment, resolve_deployment
|
|
8
|
+
from tba_runtime_identity_storage.engine import dsn
|
|
9
|
+
from .authorization_surface import router as authorize_router
|
|
10
|
+
from .login_surface import router as login_router
|
|
11
|
+
from .token_surface import router as token_router
|
|
12
|
+
from .client_registration_surface import (
|
|
13
|
+
include_client_registration_endpoint,
|
|
14
|
+
)
|
|
15
|
+
from .device_authorization_surface import (
|
|
16
|
+
include_device_authorization_endpoint,
|
|
17
|
+
)
|
|
18
|
+
from .introspection_surface import include_introspection_endpoint
|
|
19
|
+
from .logout_surface import include_logout_endpoint
|
|
20
|
+
from .authorization_server_metadata_surface import (
|
|
21
|
+
include_rfc8414,
|
|
22
|
+
)
|
|
23
|
+
from .oidc_discovery_surface import (
|
|
24
|
+
include_jwks,
|
|
25
|
+
include_openid_configuration,
|
|
26
|
+
)
|
|
27
|
+
from .protected_resource_metadata_surface import (
|
|
28
|
+
include_rfc9728,
|
|
29
|
+
)
|
|
30
|
+
from .par_surface import include_par_endpoint
|
|
31
|
+
from .revocation_surface import include_revocation_endpoint
|
|
32
|
+
from .token_exchange_surface import (
|
|
33
|
+
include_token_exchange_endpoint,
|
|
34
|
+
)
|
|
35
|
+
from .userinfo_surface import include_oidc_userinfo
|
|
36
|
+
from .standards_manifest import include_standards_manifest
|
|
37
|
+
from .advanced_protocols import include_advanced_protocols
|
|
38
|
+
|
|
39
|
+
from .admin_routes import *
|
|
40
|
+
from .admin_routes import (
|
|
41
|
+
_attach_admin_security_metadata,
|
|
42
|
+
include_admin_routes,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
PUBLIC_ROUTER_BINDINGS: Final[tuple[dict[str, Any], ...]] = (
|
|
46
|
+
{
|
|
47
|
+
"mount_group": "admin_auth",
|
|
48
|
+
"capabilities": ("admin-auth",),
|
|
49
|
+
"router": admin_auth_api,
|
|
50
|
+
},
|
|
51
|
+
{"mount_group": "login", "capabilities": ("login",), "router": login_router},
|
|
52
|
+
{
|
|
53
|
+
"mount_group": "authorize",
|
|
54
|
+
"capabilities": ("authorize",),
|
|
55
|
+
"router": authorize_router,
|
|
56
|
+
},
|
|
57
|
+
{"mount_group": "token", "capabilities": ("token",), "router": token_router},
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
PUBLIC_PUBLISHER_BINDINGS: Final[tuple[dict[str, Any], ...]] = (
|
|
61
|
+
{
|
|
62
|
+
"mount_group": "advanced_protocols",
|
|
63
|
+
"capabilities": (
|
|
64
|
+
"oid4vci-credential",
|
|
65
|
+
"oid4vp-verification",
|
|
66
|
+
"authzen-evaluation",
|
|
67
|
+
"gnap-transaction",
|
|
68
|
+
"set-receiver",
|
|
69
|
+
"attestation-appraisal",
|
|
70
|
+
),
|
|
71
|
+
"include": include_advanced_protocols,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"mount_group": "standards_manifest",
|
|
75
|
+
"capabilities": ("standards-manifest",),
|
|
76
|
+
"include": include_standards_manifest,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"mount_group": "register",
|
|
80
|
+
"capabilities": ("register", "register-management"),
|
|
81
|
+
"include": include_client_registration_endpoint,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"mount_group": "logout",
|
|
85
|
+
"capabilities": ("logout",),
|
|
86
|
+
"include": include_logout_endpoint,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"mount_group": "device_authorization",
|
|
90
|
+
"capabilities": ("device-authorization",),
|
|
91
|
+
"include": include_device_authorization_endpoint,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"mount_group": "par",
|
|
95
|
+
"capabilities": ("par",),
|
|
96
|
+
"include": include_par_endpoint,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"mount_group": "revoke",
|
|
100
|
+
"capabilities": ("revoke",),
|
|
101
|
+
"include": include_revocation_endpoint,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"mount_group": "userinfo",
|
|
105
|
+
"capabilities": ("userinfo",),
|
|
106
|
+
"include": include_oidc_userinfo,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"mount_group": "introspection",
|
|
110
|
+
"capabilities": ("introspection",),
|
|
111
|
+
"include": include_introspection_endpoint,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"mount_group": "token_exchange",
|
|
115
|
+
"capabilities": ("token-exchange",),
|
|
116
|
+
"include": include_token_exchange_endpoint,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"mount_group": "oauth_protected_resource_metadata",
|
|
120
|
+
"capabilities": ("oauth-protected-resource-metadata",),
|
|
121
|
+
"include": include_rfc9728,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"mount_group": "oauth_authorization_server_metadata",
|
|
125
|
+
"capabilities": ("oauth-authorization-server-metadata",),
|
|
126
|
+
"include": include_rfc8414,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"mount_group": "openid_configuration",
|
|
130
|
+
"capabilities": (
|
|
131
|
+
"openid-configuration",
|
|
132
|
+
"tenant-openid-configuration",
|
|
133
|
+
"realm-openid-configuration",
|
|
134
|
+
),
|
|
135
|
+
"include": include_openid_configuration,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"mount_group": "jwks",
|
|
139
|
+
"capabilities": ("jwks", "tenant-jwks", "realm-jwks"),
|
|
140
|
+
"include": include_jwks,
|
|
141
|
+
},
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def _as_deployment(
|
|
146
|
+
settings_obj: object | None = None,
|
|
147
|
+
*,
|
|
148
|
+
deployment: ResolvedDeployment | None = None,
|
|
149
|
+
) -> ResolvedDeployment:
|
|
150
|
+
return deployment or resolve_deployment(settings_obj)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def build_public_router(
|
|
154
|
+
settings_obj: object | None = None,
|
|
155
|
+
*,
|
|
156
|
+
deployment: ResolvedDeployment | None = None,
|
|
157
|
+
) -> TigrblRouter:
|
|
158
|
+
deployment = _as_deployment(settings_obj, deployment=deployment)
|
|
159
|
+
router = TigrblRouter(engine=dsn)
|
|
160
|
+
selected_table_resources = include_admin_routes(router, deployment=deployment)
|
|
161
|
+
if deployment.surface_enabled("public-rest"):
|
|
162
|
+
for entry in PUBLIC_ROUTER_BINDINGS:
|
|
163
|
+
if entry["router"] is admin_auth_api:
|
|
164
|
+
continue
|
|
165
|
+
if any(
|
|
166
|
+
deployment.capability_enabled(capability)
|
|
167
|
+
for capability in entry["capabilities"]
|
|
168
|
+
):
|
|
169
|
+
router.include_router(entry["router"])
|
|
170
|
+
assert_table_initialization_scope(deployment, selected_table_resources)
|
|
171
|
+
return router
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
def build_surface_api(
|
|
175
|
+
settings_obj: object | None = None,
|
|
176
|
+
*,
|
|
177
|
+
deployment: ResolvedDeployment | None = None,
|
|
178
|
+
) -> TigrblRouter:
|
|
179
|
+
return build_public_router(settings_obj, deployment=deployment)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
PublicRouter = build_public_router(
|
|
183
|
+
deployment=resolve_deployment(plugin_mode="public-only")
|
|
184
|
+
)
|
|
185
|
+
surface_api = PublicRouter
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
def runtime_surface_binding_manifest() -> dict[str, Any]:
|
|
189
|
+
return {
|
|
190
|
+
"table_resources": [resource.__name__ for resource in TABLE_RESOURCES],
|
|
191
|
+
"admin_router_bindings": [
|
|
192
|
+
{
|
|
193
|
+
"mount_group": str(entry["mount_group"]),
|
|
194
|
+
"router_module": getattr(entry["router"], "__module__", "unknown"),
|
|
195
|
+
}
|
|
196
|
+
for entry in ADMIN_ROUTER_BINDINGS
|
|
197
|
+
],
|
|
198
|
+
"router_bindings": [
|
|
199
|
+
{
|
|
200
|
+
"mount_group": str(entry["mount_group"]),
|
|
201
|
+
"capabilities": list(entry["capabilities"]),
|
|
202
|
+
"router_module": getattr(entry["router"], "__module__", "unknown"),
|
|
203
|
+
}
|
|
204
|
+
for entry in PUBLIC_ROUTER_BINDINGS
|
|
205
|
+
],
|
|
206
|
+
"publisher_bindings": [
|
|
207
|
+
{
|
|
208
|
+
"mount_group": str(entry["mount_group"]),
|
|
209
|
+
"capabilities": list(entry["capabilities"]),
|
|
210
|
+
"include_ref": f"{entry['include'].__module__}:{entry['include'].__name__}",
|
|
211
|
+
}
|
|
212
|
+
for entry in PUBLIC_PUBLISHER_BINDINGS
|
|
213
|
+
],
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def include_public_runtime_publishers(
|
|
218
|
+
app: TigrblApp,
|
|
219
|
+
settings_obj: object | None = None,
|
|
220
|
+
*,
|
|
221
|
+
deployment: ResolvedDeployment | None = None,
|
|
222
|
+
) -> None:
|
|
223
|
+
deployment = _as_deployment(settings_obj, deployment=deployment)
|
|
224
|
+
if not deployment.surface_enabled("public-rest"):
|
|
225
|
+
return
|
|
226
|
+
for entry in PUBLIC_PUBLISHER_BINDINGS:
|
|
227
|
+
if any(
|
|
228
|
+
deployment.capability_enabled(capability)
|
|
229
|
+
for capability in entry["capabilities"]
|
|
230
|
+
):
|
|
231
|
+
include_fn: Callable[[TigrblApp], None] = entry["include"]
|
|
232
|
+
include_fn(app)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
def attach_runtime_surfaces(
|
|
236
|
+
app: TigrblApp,
|
|
237
|
+
settings_obj: object | None = None,
|
|
238
|
+
*,
|
|
239
|
+
deployment: ResolvedDeployment | None = None,
|
|
240
|
+
diagnostics_prefix: str = "/system",
|
|
241
|
+
) -> TigrblRouter:
|
|
242
|
+
deployment = _as_deployment(settings_obj, deployment=deployment)
|
|
243
|
+
surface_router = build_surface_api(settings_obj, deployment=deployment)
|
|
244
|
+
if deployment.flag_enabled("surface_diagnostics_enabled"):
|
|
245
|
+
surface_router.attach_diagnostics(prefix=diagnostics_prefix)
|
|
246
|
+
_attach_admin_security_metadata(
|
|
247
|
+
surface_router,
|
|
248
|
+
deployment,
|
|
249
|
+
diagnostics_prefix=diagnostics_prefix,
|
|
250
|
+
)
|
|
251
|
+
if any(
|
|
252
|
+
bool(deployment.surfaces.get(key, False))
|
|
253
|
+
for key in (
|
|
254
|
+
"surface_public_enabled",
|
|
255
|
+
"surface_admin_enabled",
|
|
256
|
+
"surface_diagnostics_enabled",
|
|
257
|
+
)
|
|
258
|
+
):
|
|
259
|
+
app.include_router(surface_router)
|
|
260
|
+
include_public_runtime_publishers(app, settings_obj, deployment=deployment)
|
|
261
|
+
return surface_router
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
__all__ = [
|
|
265
|
+
"ADMIN_ROUTER_BINDINGS",
|
|
266
|
+
"AdminRouter",
|
|
267
|
+
"TABLE_RESOURCES",
|
|
268
|
+
"TableInitializationScopeError",
|
|
269
|
+
"PUBLIC_ROUTER_BINDINGS",
|
|
270
|
+
"PUBLIC_PUBLISHER_BINDINGS",
|
|
271
|
+
"assert_table_initialization_scope",
|
|
272
|
+
"attach_runtime_surfaces",
|
|
273
|
+
"admin_resource_path_prefixes",
|
|
274
|
+
"build_admin_router",
|
|
275
|
+
"build_public_router",
|
|
276
|
+
"build_surface_api",
|
|
277
|
+
"include_admin_routes",
|
|
278
|
+
"include_public_runtime_publishers",
|
|
279
|
+
"PublicRouter",
|
|
280
|
+
"required_table_resource_names",
|
|
281
|
+
"runtime_surface_binding_manifest",
|
|
282
|
+
"surface_api",
|
|
283
|
+
"table_initialization_manifest",
|
|
284
|
+
]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Runtime composition for the RFC 8693 token-exchange carrier."""
|
|
2
|
+
|
|
3
|
+
from tigrbl import TigrblApp
|
|
4
|
+
from tba_router_oauth_token_exchange import (
|
|
5
|
+
build_token_exchange_router,
|
|
6
|
+
include_token_exchange_endpoint as include_token_exchange_carrier,
|
|
7
|
+
)
|
|
8
|
+
from tba_runtime_identity.settings import settings
|
|
9
|
+
|
|
10
|
+
from tba_server_identity.token_exchange_runtime import token_exchange
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
router = build_token_exchange_router(token_exchange_request=token_exchange)
|
|
14
|
+
api = router
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def include_token_exchange_endpoint(app: TigrblApp) -> None:
|
|
18
|
+
include_token_exchange_carrier(
|
|
19
|
+
app,
|
|
20
|
+
router,
|
|
21
|
+
enabled=bool(settings.enable_rfc8693),
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
include_rfc8693 = include_token_exchange_endpoint
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"api",
|
|
30
|
+
"include_rfc8693",
|
|
31
|
+
"include_token_exchange_endpoint",
|
|
32
|
+
"router",
|
|
33
|
+
"token_exchange",
|
|
34
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Runtime composition for the OAuth token endpoint HTTP carrier."""
|
|
2
|
+
|
|
3
|
+
from tba_router_oauth_token import build_token_router
|
|
4
|
+
from tba_runtime_identity_storage.engine import get_db
|
|
5
|
+
|
|
6
|
+
from tba_server_identity.token_request import token_request
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
router = build_token_router(token_request=token_request, get_db=get_db)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
__all__ = ["router", "token_request"]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Runtime composition for the OpenID Connect UserInfo HTTP carrier."""
|
|
2
|
+
|
|
3
|
+
from tigrbl import TigrblApp
|
|
4
|
+
from tba_router_oidc_userinfo import (
|
|
5
|
+
build_userinfo_router,
|
|
6
|
+
include_userinfo_endpoint,
|
|
7
|
+
)
|
|
8
|
+
from tba_runtime_identity.deployment import deployment_from_app
|
|
9
|
+
from tba_runtime_identity.settings import settings
|
|
10
|
+
from tba_runtime_identity_storage.engine import get_db
|
|
11
|
+
|
|
12
|
+
from tba_server_identity.userinfo_runtime import first_user_by_filters, userinfo
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
router = build_userinfo_router(userinfo_request=userinfo, get_db=get_db)
|
|
16
|
+
api = router
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def include_oidc_userinfo(app: TigrblApp) -> None:
|
|
20
|
+
deployment = deployment_from_app(app, settings)
|
|
21
|
+
include_userinfo_endpoint(
|
|
22
|
+
app,
|
|
23
|
+
router,
|
|
24
|
+
enabled=deployment.route_enabled("/userinfo"),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"api",
|
|
30
|
+
"first_user_by_filters",
|
|
31
|
+
"include_oidc_userinfo",
|
|
32
|
+
"router",
|
|
33
|
+
"userinfo",
|
|
34
|
+
]
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-app-backend-core
|
|
3
|
+
Version: 0.4.0.dev2
|
|
4
|
+
Summary: Shared layer-90 ASGI and router composition for TBA backend applications.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.10,<3.15
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: tba-capability-client-secret-authentication (==0.4.0.dev2)
|
|
14
|
+
Requires-Dist: tba-contracts-identity (==0.4.0.dev2)
|
|
15
|
+
Requires-Dist: tba-operator-identity (==0.4.0.dev2)
|
|
16
|
+
Requires-Dist: tba-plugin-tigrbl (==0.4.0.dev2)
|
|
17
|
+
Requires-Dist: tba-primitives-identity (==0.4.0.dev2)
|
|
18
|
+
Requires-Dist: tba-protocol-gnap (==0.4.0.dev2)
|
|
19
|
+
Requires-Dist: tba-protocol-oauth (==0.4.0.dev2)
|
|
20
|
+
Requires-Dist: tba-provider-secret-hashing-bcrypt (==0.1.0)
|
|
21
|
+
Requires-Dist: tba-router-administration-gate (==0.4.0.dev2)
|
|
22
|
+
Requires-Dist: tba-router-oauth-authorization (==0.4.0.dev2)
|
|
23
|
+
Requires-Dist: tba-router-oauth-authorization-server-metadata (==0.4.0.dev2)
|
|
24
|
+
Requires-Dist: tba-router-oauth-device-authorization (==0.4.0.dev2)
|
|
25
|
+
Requires-Dist: tba-router-oauth-introspection (==0.4.0.dev2)
|
|
26
|
+
Requires-Dist: tba-router-oauth-protected-resource-metadata (==0.4.0.dev2)
|
|
27
|
+
Requires-Dist: tba-router-oauth-pushed-authorization-request (==0.4.0.dev2)
|
|
28
|
+
Requires-Dist: tba-router-oauth-registration (==0.4.0.dev2)
|
|
29
|
+
Requires-Dist: tba-router-oauth-revocation (==0.4.0.dev2)
|
|
30
|
+
Requires-Dist: tba-router-oauth-token (==0.4.0.dev2)
|
|
31
|
+
Requires-Dist: tba-router-oauth-token-exchange (==0.4.0.dev2)
|
|
32
|
+
Requires-Dist: tba-router-oidc-discovery (==0.4.0.dev2)
|
|
33
|
+
Requires-Dist: tba-router-oidc-logout (==0.4.0.dev2)
|
|
34
|
+
Requires-Dist: tba-router-oidc-userinfo (==0.4.0.dev2)
|
|
35
|
+
Requires-Dist: tba-router-resource-validation-metadata (==0.4.0.dev2)
|
|
36
|
+
Requires-Dist: tba-router-session-login (==0.4.0.dev2)
|
|
37
|
+
Requires-Dist: tba-runtime-identity (==0.4.0.dev2)
|
|
38
|
+
Requires-Dist: tba-runtime-identity-storage (==0.4.0.dev2)
|
|
39
|
+
Requires-Dist: tba-server-identity (==0.4.0.dev2)
|
|
40
|
+
Requires-Dist: tba-storage-core (==0.4.0.dev4)
|
|
41
|
+
Requires-Dist: tba-storage-oauth (==0.4.0.dev2)
|
|
42
|
+
Requires-Dist: tba-storage-tenancy (==0.4.0.dev2)
|
|
43
|
+
Requires-Dist: tigrbl (==0.4.5.dev8)
|
|
44
|
+
Project-URL: Homepage, https://github.com/tigrbl/tigrbl_auth
|
|
45
|
+
Project-URL: Repository, https://github.com/tigrbl/tigrbl_auth
|
|
46
|
+
Project-URL: Source, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/90-backend-apps/tba-app-backend-core
|
|
47
|
+
Description-Content-Type: text/markdown
|
|
48
|
+
|
|
49
|
+
# tba-app-backend-core
|
|
50
|
+
|
|
51
|
+
Shared layer-90 composition for deployable TBA backend applications.
|
|
52
|
+
|
|
53
|
+
This package owns ASGI application construction, layer-80 router closure, HTTP
|
|
54
|
+
surface assembly, administrative gate wrapping, and product-surface selection.
|
|
55
|
+
Product backend-app packages supply a declared product contract and call the
|
|
56
|
+
shared build_product_app factory.
|
|
57
|
+
|
|
58
|
+
It does not own protocol semantics, capability implementations, durable table
|
|
59
|
+
behavior, runtime handlers, or storage. Those remain in layers 50, 40, 30, and
|
|
60
|
+
60 and are injected or imported downward.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
tba_app_backend_core/__init__.py,sha256=S1gup4Nt5BH8e4jXcgqmd95L_PjLhB32101b6L-EDuA,420
|
|
2
|
+
tba_app_backend_core/app.py,sha256=2oHnvWZJz5X4KlpbOUclgPm92xwKbcF3iXyNZJsbcMA,4556
|
|
3
|
+
tba_app_backend_core/plugin.py,sha256=ITnitwUaxUnSX4laQfGD_8P3xJooTb1mNx_hoXR1u8Y,886
|
|
4
|
+
tba_app_backend_core/product.py,sha256=Dzkpch3B08wK-nWeHwWp8C6ZEkxXMeTCxDWC96tXYVc,1835
|
|
5
|
+
tba_app_backend_core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
tba_app_backend_core/surfaces/__init__.py,sha256=Q6_RVh_kTEL_s2DHPwGfTk8ZxVgGr5fyiNg8dD7AfwU,89
|
|
7
|
+
tba_app_backend_core/surfaces/admin_routes.py,sha256=reXrTUfOLlvWd0ZSvzAYzg3L0hVANIpdvUNt1k0hzR4,11361
|
|
8
|
+
tba_app_backend_core/surfaces/advanced_protocols.py,sha256=x5WdLQ_ahdlXAHZAClMdLL3fnUwFHJ2DqCt8qGmrjHo,5732
|
|
9
|
+
tba_app_backend_core/surfaces/auth_flows.py,sha256=lStJV26k4q9AOjEGbvbvw0IYuL8XXEDEHfC4xV_H7Mo,464
|
|
10
|
+
tba_app_backend_core/surfaces/authorization_server_metadata_surface.py,sha256=CLHX3dsjGO1jSA22330aJOcaC4skLXiHer8Q0m0On_c,1064
|
|
11
|
+
tba_app_backend_core/surfaces/authorization_surface.py,sha256=xhUXavDSCdu8hbHWCKNwULnS5jmggGSItDO7CMxKArA,417
|
|
12
|
+
tba_app_backend_core/surfaces/authz_surface.py,sha256=JAZuN9pVhuHQRQMjkrYweqhS5cSvsbHT2b56xfYj7G4,361
|
|
13
|
+
tba_app_backend_core/surfaces/client_registration_surface.py,sha256=kRBu31VhPxRQKhQ-9P4au60W2U0bGKRZ1QRG5wskDOE,12688
|
|
14
|
+
tba_app_backend_core/surfaces/device_authorization_surface.py,sha256=G2I3VvcI9M4M5U09ygSDwu0w0VVCaM9KrGfOxLbSR8k,1178
|
|
15
|
+
tba_app_backend_core/surfaces/introspection_surface.py,sha256=R5xdf7qldmCOhp81GK9k0l8hnE3VW1TbkBNmiK_jabY,9071
|
|
16
|
+
tba_app_backend_core/surfaces/login_surface.py,sha256=oSY5ce53Vg9ukgLNSZEb-4InZpAVq4K3U8oE8sb_EfQ,568
|
|
17
|
+
tba_app_backend_core/surfaces/logout_surface.py,sha256=j86Qf4QGyF_xZbXzztq6E1N7hpJLsEmsNU0vOSQU7po,974
|
|
18
|
+
tba_app_backend_core/surfaces/oidc_discovery_surface.py,sha256=jVzn3gUMhIWlh0CDYp2ff2RIMQkiHs5X6tX19ukvhv4,2235
|
|
19
|
+
tba_app_backend_core/surfaces/par_surface.py,sha256=WBMJbIPZBcWI_WK42_bniwkARebwZJHf-RgE3tX55TE,13849
|
|
20
|
+
tba_app_backend_core/surfaces/protected_resource_metadata_surface.py,sha256=6H7-afO5TWMkPGue8w-5hfhGqsS8aw7UvmSzNR0H2lI,996
|
|
21
|
+
tba_app_backend_core/surfaces/resource_validation_metadata_surface.py,sha256=G1PPRHD-JVJ8QkVSSu5gajHxCZrRsdKuq9ERTYzaHXs,1019
|
|
22
|
+
tba_app_backend_core/surfaces/revocation_surface.py,sha256=LE9v7e8ShTEqtGh7cJI-r4aK2RfD6frSspCBVKe1UJw,918
|
|
23
|
+
tba_app_backend_core/surfaces/standards_manifest.py,sha256=-85c23KIT2hHDnQ3XOSmpRT-VL7ApRzx0IXRw7nlR9I,738
|
|
24
|
+
tba_app_backend_core/surfaces/surface_api.py,sha256=0Y-6_v1s8Fvtylpfzag7Zi8DXvZvTVnaNu63hKLQiYA,8970
|
|
25
|
+
tba_app_backend_core/surfaces/token_exchange_surface.py,sha256=3UdYqYgUNkxqFNQ-OQWslni7vL5ppXuMDSDRVtJkAX8,820
|
|
26
|
+
tba_app_backend_core/surfaces/token_surface.py,sha256=1Wx9mkvlIPbYeOA6iYMxS3-oejVffIMs6XtQC_NiUtM,354
|
|
27
|
+
tba_app_backend_core/surfaces/userinfo_surface.py,sha256=h1BzNa9lrqSBSlzYDUViWs_e2aLFn5_pwEjHsRvWRQI,882
|
|
28
|
+
tba_app_backend_core-0.4.0.dev2.dist-info/METADATA,sha256=g3RQdkKP0suWIxwRCLhV2iTrM1jlhibo52PvMRzCv3E,3138
|
|
29
|
+
tba_app_backend_core-0.4.0.dev2.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
30
|
+
tba_app_backend_core-0.4.0.dev2.dist-info/RECORD,,
|