From c7107062a01ddd7a6c6f17c900ea450fc1ca1616 Mon Sep 17 00:00:00 2001 From: Thomas COMES Date: Thu, 6 Aug 2026 18:18:36 +0200 Subject: [PATCH] Restore HubEE OAuth scope to DATAPASS Re-applies the scope decided with HubEE (API-7125) once their Keycloak configuration is fixed; reverts the temporary fallback to ADMIN. --- site/app/clients/hubee_api_authentication.rb | 2 +- site/spec/clients/hubee_api_authentication_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/app/clients/hubee_api_authentication.rb b/site/app/clients/hubee_api_authentication.rb index 1ff40afbb8..0c32fd6a12 100644 --- a/site/app/clients/hubee_api_authentication.rb +++ b/site/app/clients/hubee_api_authentication.rb @@ -3,7 +3,7 @@ class HubEEAPIAuthentication < AbstractHubEEAPIClient def access_token http_connection.post( auth_url, - 'grant_type=client_credentials&scope=ADMIN', + 'grant_type=client_credentials&scope=DATAPASS', { 'Authorization' => "Basic #{encoded_client_id_and_secret}" } diff --git a/site/spec/clients/hubee_api_authentication_spec.rb b/site/spec/clients/hubee_api_authentication_spec.rb index 92513f1770..4424e823cf 100644 --- a/site/spec/clients/hubee_api_authentication_spec.rb +++ b/site/spec/clients/hubee_api_authentication_spec.rb @@ -6,7 +6,7 @@ before do stub_request(:post, auth_url) - .with(body: 'grant_type=client_credentials&scope=ADMIN') + .with(body: 'grant_type=client_credentials&scope=DATAPASS') .to_return( status: 200, headers: { 'Content-Type' => 'application/json' },