From a2a1d0a891df303faa2e870b7e97fbd866aaeef9 Mon Sep 17 00:00:00 2001 From: "Paula V. Quispe" Date: Wed, 25 Mar 2015 12:27:06 -0400 Subject: [PATCH] I solved the credentials management --- workflow/engine/methods/oauth2/grant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/methods/oauth2/grant.php b/workflow/engine/methods/oauth2/grant.php index 1bb7ccab6..ee040ff78 100644 --- a/workflow/engine/methods/oauth2/grant.php +++ b/workflow/engine/methods/oauth2/grant.php @@ -23,7 +23,7 @@ $data = array( $ch = curl_init($endpoint); curl_setopt($ch, CURLOPT_HEADER, false); -curl_setopt($ch, CURLOPT_USERPWD, "$clientId:$secret"); +curl_setopt($ch, CURLOPT_USERPWD, $clientId.':'.$secret); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data);