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.
Files changed (21) hide show
  1. {interloper_api-0.52.0 → interloper_api-0.53.0}/PKG-INFO +1 -1
  2. {interloper_api-0.52.0 → interloper_api-0.53.0}/pyproject.toml +1 -1
  3. {interloper_api-0.52.0 → interloper_api-0.53.0}/pyproject.toml.orig +1 -1
  4. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/admin.py +2 -2
  5. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/auth.py +2 -2
  6. {interloper_api-0.52.0 → interloper_api-0.53.0}/README.md +0 -0
  7. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/__init__.py +0 -0
  8. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/app.py +0 -0
  9. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/components.py +0 -0
  10. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/dependencies.py +0 -0
  11. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/email.py +0 -0
  12. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/__init__.py +0 -0
  13. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/agent.py +0 -0
  14. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/backfills.py +0 -0
  15. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/catalog.py +0 -0
  16. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/components.py +0 -0
  17. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/oauth.py +0 -0
  18. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/organisations.py +0 -0
  19. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/runs.py +0 -0
  20. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/tokens.py +0 -0
  21. {interloper_api-0.52.0 → interloper_api-0.53.0}/src/interloper_api/routes/ws.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: interloper-api
3
- Version: 0.52.0
3
+ Version: 0.53.0
4
4
  Summary: Interloper FastAPI routes
5
5
  Author: Guillaume Onfroy
6
6
  Author-email: Guillaume Onfroy <guillaume@digitlcloud.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "interloper-api"
3
- version = "0.52.0"
3
+ version = "0.53.0"
4
4
  description = "Interloper FastAPI routes"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -3,7 +3,7 @@
3
3
  # ###############
4
4
  [project]
5
5
  name = "interloper-api"
6
- version = "0.52.0"
6
+ version = "0.53.0"
7
7
  description = "Interloper FastAPI routes"
8
8
  readme = "README.md"
9
9
  authors = [{ name = "Guillaume Onfroy", email = "guillaume@digitlcloud.com" }]
@@ -154,7 +154,7 @@ class AdminDeploymentConfig(BaseModel):
154
154
  class AdminAuthConfig(BaseModel):
155
155
  """Authentication and signup policy."""
156
156
 
157
- signup_allowed_domains: list[str]
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
- signup_allowed_domains=settings.auth.signup_allowed_domains,
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 ``signup_allowed_domains`` keeps signup open (the default).
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.signup_allowed_domains
32
+ allowed_domains = auth_config.allowed_domains
33
33
  if not allowed_domains:
34
34
  return True
35
35