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

Role creation during client registration not working

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Done
    • 13.0.1
    • 15.0.0
    • Admin - REST API
    • CIAM Sprint 1
    • Hide

      ClientRepresentation client = new ClientRepresentation();
      client.setClientId("test");
      client.setName("test client");
      client.setProtocol("openid-connect");
      client.setDefaultRoles(new String[]{"TEST"});
      client.setPublicClient(true);
      client.setSecret("secret");

      ClientRepresentation rep = reg.create(client);

      Show
      ClientRepresentation client = new ClientRepresentation(); client.setClientId("test"); client.setName("test client"); client.setProtocol("openid-connect"); client.setDefaultRoles(new String[]{"TEST"}); client.setPublicClient(true); client.setSecret("secret"); ClientRepresentation rep = reg.create(client);
    • NEW
    • NEW

    Description

      In version < 12.0.4 default roles could be passed during client registration. This is now deprecated in version 13.0.1 and does not work anymore. Thus, the possibility to create client roles during the registration via keycloak-client-registration-api is missing.

      Attachments

        Issue Links

          Activity

            People

              vramik@redhat.com Vlasta Ramik
              daniel.schel@ipa.fraunhofer.de D S (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: