You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by is...@apache.org on 2021/05/07 01:17:31 UTC
[airavata-php-gateway] branch custos-integration-latest updated:
Bug fix in RoleMapper
This is an automated email from the ASF dual-hosted git repository.
isjarana pushed a commit to branch custos-integration-latest
in repository https://gitbox.apache.org/repos/asf/airavata-php-gateway.git
The following commit(s) were added to refs/heads/custos-integration-latest by this push:
new 27131ef Bug fix in RoleMapper
27131ef is described below
commit 27131ef9a9fdb5603f6d05b719264229b22b1b6a
Author: Isuru Ranawaka <ir...@gmail.com>
AuthorDate: Thu May 6 21:17:12 2021 -0400
Bug fix in RoleMapper
---
app/libraries/Keycloak/API/RoleMapper.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/libraries/Keycloak/API/RoleMapper.php b/app/libraries/Keycloak/API/RoleMapper.php
index 39845f2..5b943bd 100644
--- a/app/libraries/Keycloak/API/RoleMapper.php
+++ b/app/libraries/Keycloak/API/RoleMapper.php
@@ -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) {