Skip to content

feat: manage OAuth providers via per-provider routes#125

Merged
Bccorb merged 1 commit into
mainfrom
feat/oauth-provider-per-provider-routes
Jul 21, 2026
Merged

feat: manage OAuth providers via per-provider routes#125
Bccorb merged 1 commit into
mainfrom
feat/oauth-provider-per-provider-routes

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrates the OAuth provider editor from the whole-config patch to the dedicated per-provider API routes (see fells-code/seamless-auth-api#95, reached through the adapter in fells-code/seamless-auth-server#112).

  • New useOAuthProviders hook wrapping POST/PATCH/DELETE /system-config/oauth-providers[/:id], each invalidating the system-config query.
  • Adding, editing, enabling, disabling, and removing a provider now apply immediately (behind the step-up guard, with a confirm dialog on remove) rather than staging into the shared config draft and replacing the entire oauth_providers array on Save.
  • Removes the last-write-wins clobber when two admins edit providers concurrently.
  • Client secrets stay out of the UI: only the clientSecretEnv variable name is entered, never a raw secret.

Testing

  • Updated SystemConfig.test.tsx with per-provider flow tests (create, edit-in-place on id reuse, disable, remove, remove-cancelled).
  • Full dashboard suite green (417 tests); typecheck, build, and lint clean.

Add a useOAuthProviders hook (create/update/remove) that calls the dedicated
GET/POST/PATCH/DELETE /system-config/oauth-providers routes, and migrate the
provider editor to it. Adding, editing, enabling, disabling, and removing a
provider now apply immediately (behind the step-up guard, with confirm on
remove) instead of staging into the shared config draft and replacing the whole
oauth_providers array on Save. This removes the last-write-wins clobber when two
admins edit providers at once. Client secrets stay out of the UI: only the
clientSecretEnv variable name is entered.
@Bccorb
Bccorb merged commit 8878f76 into main Jul 21, 2026
2 checks passed
@Bccorb
Bccorb deleted the feat/oauth-provider-per-provider-routes branch July 21, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant