[ 
https://issues.apache.org/jira/browse/CAMEL-26902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146114#comment-18146114
 ] 

Aurélien Pupier commented on CAMEL-26902:
-----------------------------------------

the changes seems not compatible with previous version of keycloak. On ppc64le, 
it is still using 26.0.15 version 
https://github.com/apache/camel/commit/e16f4dac572ab60c005c5c190a1a7af66a71d29b#diff-d60f7d91424dec4aa82712cd5cacd985b075d18456d7f69b7ed7441202726939R19

so several tests are failing 
https://ci-builds.apache.org/job/Camel/job/Camel%20Core%20(Build%20and%20test)/job/main/2475/testReport/
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testAddOrganizationMember
  2 sec   1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testCreateOrganization  
   2.3 sec 1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testGetOrganization     
   1.9 sec 1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testLinkOrganizationIdentityProvider
       1.6 sec 1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testListOrganizationIdentityProviders
      2 sec   1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testListOrganizationMembers
        1.7 sec 1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testListOrganizations   
   2 sec   1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testRemoveOrganizationMember
       1.9 sec 1
 BuildAndTest / Matrix - JDK_NAME = 'jdk_21_latest', PLATFORM = 'ppc64le' / 
Build and test / 
org.apache.camel.component.keycloak.KeycloakTestInfraIT.testSearchOrganizations 
   3.1 sec 1


> camel-keycloak - Keycloak 26.8.2 requires the kc-admin-api client scope for 
> Admin REST API calls
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26902
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26902
>             Project: Camel
>          Issue Type: Task
>          Components: camel-keycloak
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> Keycloak 26.8.2 enforces an audience check on the Admin REST API (RFC 9700): 
> a bearer token must carry the new built-in kc-admin-api client scope, which 
> adds the realm Admin API URL as audience. On upgrade the scope is assigned by 
> default only to admin-cli and security-admin-console; any other client or 
> service account used for Admin API calls gets 401 Unauthorized.
> In Camel this shows up in KeycloakProducerRevocationIT (testLogoutAllUsers, 
> testPushNotBefore fail with HTTP 401 on the 26.8.2 container, see 
> https://github.com/apache/camel/pull/29443). Users whose camel-keycloak 
> producer authenticates with their own confidential client 
> (clientId/clientSecret) need to assign kc-admin-api to that client.
> This upgrades the test container to 26.8.2, gives the IT client the 
> kc-admin-api scope when it exists, and documents the requirement in the 
> component page and the 4.24 upgrade guide.
> Reference: 
> https://github.com/keycloak/keycloak/blob/release/26.8/docs/documentation/upgrading/topics/changes/changes-26_8_2.adoc
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to