Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-13995

Update (PUT) on Client Admin REST Endpoint had no effect on ProtocolMappers

    Details

    • Steps to Reproduce:
      Hide

      1. Create a client with ProtocolMappers using the Admin REST Api (for fast check, use the Ansible keycloak_client module)
      2. Try to delete or change the client mapper using the API (HTTP PUT).

      Show
      1. Create a client with ProtocolMappers using the Admin REST Api (for fast check, use the Ansible keycloak_client module) 2. Try to delete or change the client mapper using the API (HTTP PUT).
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When creating a client via Admin REST API it is possible to add ProtocolMappers, but on an updated these Mappers can not be changed in any way. Testen on 8.0.2 and 9.0.3.

      Reason for this is a missing call to RepresentationToModel.updateClientProtocolMappers in the update method (https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/services/resources/admin/ClientResource.java#L703). This would follow the ClientRegistration implementation and fixes the issue.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  cc_mriedmann Michael Riedmann
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: