Skip to content

Commit 375cb89

Browse files
committed
Revert HubEE OAuth scope to ADMIN
The DATAPASS scope HubEE asked for is misconfigured on their side and their team is on holiday; ADMIN is the known-working scope meanwhile.
1 parent b62013b commit 375cb89

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=DATAPASS',
6+
'grant_type=client_credentials&scope=ADMIN',
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=DATAPASS')
9+
.with(body: 'grant_type=client_credentials&scope=ADMIN')
1010
.to_return(
1111
status: 200,
1212
headers: { 'Content-Type' => 'application/json' },

0 commit comments

Comments
 (0)