Repository navigation
Description
supabase sso list/show/update fail with SchemaError on 2.106.0 (regression from 2.101.0)
Summary
Starting in CLI 2.106.0, every supabase sso read/write command fails with a
deserialization SchemaError against a hosted project that has existing SAML SSO
providers. The same commands work correctly on 2.101.0 against the same
project and the same providers (no provider data changed between the two runs),
so this is a client-side response-parsing regression rather than a server-side or
data issue.
Affected commands
supabase sso listsupabase sso show <provider-id>supabase sso update <provider-id> ...(fails because it performs a GET first)
supabase sso list against a project with zero providers succeeds
({"providers":[]}); the failure only occurs once at least one SAML provider exists.
Errors
supabase sso list:
failed to list sso providers: SchemaError(Missing key
at ["items"][0]["saml"]["attribute_mapping"]["keys"])
supabase sso show <provider-id> and supabase sso update <provider-id> ...:
failed to get sso provider: SchemaError(Missing key
at ["saml"]["id"])
The output format does not matter (--output-format json and --experimental
produce the same error), which indicates the failure is in response
deserialization, before rendering.
Likely cause
The Management API returns SAML providers with attribute_mapping as an empty
object ({}) for providers created without a custom attribute mapping. 2.106.0's
schema appears to require attribute_mapping.keys to be present whenever
attribute_mapping is present, so an empty {} (no keys) fails to deserialize.
A similar strictness around saml.id breaks show/update.
For reference, the GoTrue admin endpoint
(GET /auth/v1/admin/sso/providers) returns "attribute_mapping": {} for such
providers, and that endpoint continues to work normally.
Steps to reproduce
- Have a hosted project with at least one SAML SSO provider created without a
custom attribute mapping (so itsattribute_mappingis{}). supabase sso list --project-ref <project-ref>on 2.106.0 →SchemaError.- Downgrade to 2.101.0 and run the identical command → succeeds, lists all
providers correctly.
Expected behavior
sso list/show/update deserialize providers whose attribute_mapping is an empty
object ({}) — or whose attribute_mapping/saml.id shape matches what the
Management API currently returns — and succeed, as 2.101.0 does.
Environment
- Supabase CLI: 2.106.0 (broken), 2.101.0 (works)
- OS: macOS (Apple Silicon), installed via Homebrew tap
- Project plan: Pro (SAML SSO enabled)
Workaround
Pin the CLI to 2.101.0 until a fixed release is available.
Activity
fix(api): accept sparse SSO provider responses (supabase#5594)