Skip to content

Username updates for OIDC users are silently ignored #85

Description

@lithomson

Version

Waldur 8.0.9-rc.26

Deployment

Docker Compose under rootless Podman

Description

For users created via OIDC, editing the username through the UI appears to succeed, but the username is not updated.

Other editable fields (for example is_staff) are saved correctly.

Steps to reproduce

  1. Log in as a staff user.
  2. Navigate to Support → Users.
  3. Edit an OIDC-created user.
  4. Change the username to a valid lowercase value.
  5. Save the user.

Expected behaviour

The username should be updated.

Actual behaviour

The request returns 200 OK, but the username remains unchanged.

The PATCH request payload contains the updated username, for example:

{
  "username": "lthomsonupdated",
  ...
}

However, the response immediately returns the original username:

{
  "username": "lthomson",
  ...
}

The username in the core_user table is also unchanged after the PATCH request.

As a diagnostic step, updating core_user.username directly in PostgreSQL succeeds immediately, and the updated username is reflected in the UI. This suggests the issue is not a database constraint, but occurs during the normal API save process.

Additional information

The affected users were created via OIDC (registration_method: "keycloak" in this deployment).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions