Skip to content

PATCHing an OAuth Client clears the registration access token #4093

Description

@OMBradF

Preflight checklist

Ory Network Project

No response

Describe the bug

The PATCH {{baseUrl}}/admin/clients/{id} endpoint loses the RegistrationAccessTokenSignature when marshaling the client to JSON, permanently invalidating the registration access token. This makes it impossible to manage the client via the Dynamic Client Registration endpoints GET /oauth2/register/{id}, PUT /oauth2/register/{id} and DELETE /oauth2/register/{id}.

Reproducing the bug

  1. Create an OAuth2 client using the OIDC Dynamic Client Registration API.
  2. Call the PATCH /admin/clients/{id} endpoint and update the client.
  3. Attempt to manage the client using the Dynamic Client Registration API (GET, PUT, or DELETE).

Relevant log output

Relevant configuration

oidc:
  dynamic_client_registration:
    enabled: true

Version

25.4.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Kubernetes with Helm

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions