feat(oidc): expose is_env_managed in the provider response

The frontend needs it to render the provider read-only. Without the flag the
UI would offer editable fields whose writes the API then refuses with 409 --
the change would look accepted right up until it wasn't.

Refs #2593
This commit is contained in:
Marian
2026-07-28 21:05:29 +00:00
parent c9ee259807
commit ccc90ff34c
+3
View File
@@ -518,6 +518,9 @@ class OIDCProviderResponse(BaseModel):
icon_url: str | None = None
default_group_id: int | None = None
is_autologin: bool = False # #1589
# #2593 — the UI renders this provider read-only; without the flag it would
# offer editable fields whose writes the API then refuses with 409.
is_env_managed: bool = False
# Set explicitly in the route handler from `icon_content_type is not None`
# rather than `@computed_field` (project policy) or `icon_data is not None`
# (would trigger an async lazy-load on the deferred BLOB column).