interloper-api 0.52.0__tar.gz → 0.53.0__tar.gz
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.
- {interloper_api-0.52.0 → interloper_api-0.53.0}/PKG-INFO +1 -1
- {interloper_api-0.52.0 → interloper_api-0.53.0}/pyproject.toml +1 -1
- {interloper_api-0.52.0 → interloper_api-0.53.0}/pyproject.toml.orig +1 -1
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/admin.py +2 -2
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/auth.py +2 -2
- {interloper_api-0.52.0 → interloper_api-0.53.0}/README.md +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/__init__.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/app.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/components.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/dependencies.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/email.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/__init__.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/agent.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/backfills.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/catalog.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/components.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/oauth.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/organisations.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/runs.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/tokens.py +0 -0
- {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/ws.py +0 -0
|
@@ -154,7 +154,7 @@ class AdminDeploymentConfig(BaseModel):
|
|
|
154
154
|
class AdminAuthConfig(BaseModel):
|
|
155
155
|
"""Authentication and signup policy."""
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
allowed_domains: list[str]
|
|
158
158
|
super_admin_emails: list[str]
|
|
159
159
|
google_oauth_configured: bool
|
|
160
160
|
google_redirect_uri: str
|
|
@@ -346,7 +346,7 @@ def build_config_snapshot(settings: Any, features: dict[str, bool], catalog: Any
|
|
|
346
346
|
agent_model=settings.agent.model if settings.agent.enabled else None,
|
|
347
347
|
),
|
|
348
348
|
auth=AdminAuthConfig(
|
|
349
|
-
|
|
349
|
+
allowed_domains=settings.auth.allowed_domains,
|
|
350
350
|
super_admin_emails=settings.auth.super_admin_emails,
|
|
351
351
|
google_oauth_configured=bool(settings.auth.google_client_id and settings.auth.google_client_secret),
|
|
352
352
|
google_redirect_uri=settings.auth.google_redirect_uri,
|
|
@@ -25,11 +25,11 @@ router = APIRouter(prefix="/auth", tags=["auth"])
|
|
|
25
25
|
def _signup_allowed(email: str, auth_config: Any, store: Store) -> bool:
|
|
26
26
|
"""Decide whether a first-time login may create a profile.
|
|
27
27
|
|
|
28
|
-
An empty ``
|
|
28
|
+
An empty ``allowed_domains`` keeps signup open (the default).
|
|
29
29
|
Otherwise the email must be on an allowed domain, be a configured
|
|
30
30
|
super-admin, or hold a pending invitation.
|
|
31
31
|
"""
|
|
32
|
-
allowed_domains = auth_config.
|
|
32
|
+
allowed_domains = auth_config.allowed_domains
|
|
33
33
|
if not allowed_domains:
|
|
34
34
|
return True
|
|
35
35
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|