mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
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:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user