@@ 286-295 (lines=10) @@ | ||
283 | ||
284 | $requestHeaders = []; |
|
285 | // if we have a secret registered for the client, use it |
|
286 | if (!is_null($this->provider->getSecret())) { |
|
287 | $requestHeaders = [ |
|
288 | 'Authorization' => sprintf( |
|
289 | 'Basic %s', |
|
290 | Base64::encode( |
|
291 | sprintf('%s:%s', $this->provider->getClientId(), $this->provider->getSecret()) |
|
292 | ) |
|
293 | ), |
|
294 | ]; |
|
295 | } |
|
296 | ||
297 | $response = $this->httpClient->send( |
|
298 | Request::post( |
|
@@ 387-396 (lines=10) @@ | ||
384 | ||
385 | $requestHeaders = []; |
|
386 | // if we have a secret registered for the client, use it |
|
387 | if (!is_null($this->provider->getSecret())) { |
|
388 | $requestHeaders = [ |
|
389 | 'Authorization' => sprintf( |
|
390 | 'Basic %s', |
|
391 | Base64::encode( |
|
392 | sprintf('%s:%s', $this->provider->getClientId(), $this->provider->getSecret()) |
|
393 | ) |
|
394 | ), |
|
395 | ]; |
|
396 | } |
|
397 | ||
398 | $response = $this->httpClient->send( |
|
399 | Request::post( |