Skip to content

Commit 6de8b51

Browse files
committed
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.
1 parent 375cb89 commit 6de8b51

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

site/app/clients/hubee_api_authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class HubEEAPIAuthentication < AbstractHubEEAPIClient
33
def access_token
44
http_connection.post(
55
auth_url,
6-
'grant_type=client_credentials&scope=ADMIN',
6+
'grant_type=client_credentials&scope=DATAPASS',
77
{
88
'Authorization' => "Basic #{encoded_client_id_and_secret}"
99
}

site/spec/clients/hubee_api_authentication_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
before do
88
stub_request(:post, auth_url)
9-
.with(body: 'grant_type=client_credentials&scope=ADMIN')
9+
.with(body: 'grant_type=client_credentials&scope=DATAPASS')
1010
.to_return(
1111
status: 200,
1212
headers: { 'Content-Type' => 'application/json' },

0 commit comments

Comments
 (0)