Add admin UI toggle for OAuth dynamic client registration

What does this MR do and why?

Adds the admin area toggle for OAuth dynamic client registration (DCR, RFC 7591) under Admin > Settings > General > Account and limit.

The setting, its enforcement, and the application settings REST API were merged separately in the backend-only split !248615 (merged). This MR is now scoped to the admin UI only, so administrators can disable DCR from the UI instead of the API.

Implementation

This MR adds only the admin UI pieces:

  • A checkbox (dynamic_client_registration_enabled) in the account and limit settings form.
  • A JavaScript-driven destructive-action warning that appears when the admin unchecks the box, because disabling the setting deletes all dynamically registered OAuth applications and revokes their access tokens.
  • Translation strings (.pot).
  • A view spec for the partial.

The underlying setting (default true, stored in the oauth_settings JSONB column), the POST /oauth/register enforcement, the OAuth discovery-document gating, the cleanup-on-disable worker, and the REST API attribute all live in master already via !248615 (merged).

Screenshots or screen recordings

Setting in admin area when disabled:

Screenshot_2026-07-30_at_4.01.55_PM

Setting in admin area when enabled (default value):

Screenshot_2026-07-30_at_4.01.47_PM

How to set up and validate locally

Must be running GDK in Self-Managed mode (non-SaaS mode).

  1. Visit Admin > Settings > General > Account and limit.
  2. Confirm the Allow dynamic client registration checkbox renders and is checked by default.
  3. Uncheck it and confirm the destructive-action warning appears.
  4. Save and confirm the setting persists.
Edited by Jessie Young

Merge request reports

Loading