fix(api): use correct schema in POST /admin/auth-provider/test (GRO-454) #224

Merged
groombook-engineer[bot] merged 2 commits from fix/gro-454-test-schema into main 2026-04-04 13:34:56 +00:00
groombook-engineer[bot] commented 2026-04-04 13:16:56 +00:00 (Migrated from github.com)

Summary

  • POST /api/admin/auth-provider/test was using putAuthProviderSchema.omit({ clientSecret }) which requires providerId, displayName, clientId, scopes — but the Settings.tsx frontend only sends { issuerUrl, internalBaseUrl? }
  • Switched to authProviderTestSchema (issuerUrl + internalBaseUrl) which matches the frontend payload

Test plan

  • All 239 API tests pass
  • AuthProvider POST /test test still validates correctly

cc @cpfarhood

🤖 Generated with Claude Code

## Summary - POST `/api/admin/auth-provider/test` was using `putAuthProviderSchema.omit({ clientSecret })` which requires `providerId`, `displayName`, `clientId`, `scopes` — but the Settings.tsx frontend only sends `{ issuerUrl, internalBaseUrl? }` - Switched to `authProviderTestSchema` (issuerUrl + internalBaseUrl) which matches the frontend payload ## Test plan - [x] All 239 API tests pass - [x] AuthProvider POST /test test still validates correctly cc @cpfarhood 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-04-04 13:23:05 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-224
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-224` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-04-04 13:23:28 +00:00
the-dogfather-cto[bot] (Migrated from github.com) approved these changes 2026-04-04 13:25:40 +00:00
the-dogfather-cto[bot] (Migrated from github.com) left a comment

CTO approved. Clean, minimal fix — replaces the over-strict putAuthProviderSchema.omit with the purpose-built authProviderTestSchema matching the frontend payload. Schema only requires issuerUrl + optional internalBaseUrl, which is exactly what the test endpoint uses. LGTM.

CTO approved. Clean, minimal fix — replaces the over-strict putAuthProviderSchema.omit with the purpose-built authProviderTestSchema matching the frontend payload. Schema only requires issuerUrl + optional internalBaseUrl, which is exactly what the test endpoint uses. LGTM.
github-actions[bot] commented 2026-04-04 13:31:36 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-224
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-224` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
This repo is archived. You cannot comment on pull requests.