Bug fix in RoleMapper custos-integration-latest
authorIsuru Ranawaka <irjanith@gmail.com>
Fri, 7 May 2021 01:17:12 +0000 (21:17 -0400)
committerIsuru Ranawaka <irjanith@gmail.com>
Fri, 7 May 2021 01:17:12 +0000 (21:17 -0400)
app/libraries/Keycloak/API/RoleMapper.php

index 39845f2935a0547c435ba2d09399e91a3339d2f2..5b943bd7a8dd14e99816b06d359467bcde6e7b04 100644 (file)
@@ -37,7 +37,7 @@ class RoleMapper extends BaseKeycloakAPIEndpoint {
             curl_setopt($r, CURLOPT_CAINFO, $this->cafile_path);
         }
         curl_setopt($r, CURLOPT_HTTPHEADER, array(
-            "Authorization: Basic " . base64_encode($this->client_id . ":" . $this->client_secret),
+            "Authorization: Bearer " . base64_encode($this->client_id . ":" . $this->client_secret),
         ));
         $response = curl_exec($r);
         if ($response == false) {