| @@ 288-297 (lines=10) @@ | ||
| 285 | ||
| 286 | $requestHeaders = []; |
|
| 287 | // if we have a secret registered for the client, use it |
|
| 288 | if (!is_null($this->provider->getSecret())) { |
|
| 289 | $requestHeaders = [ |
|
| 290 | 'Authorization' => sprintf( |
|
| 291 | 'Basic %s', |
|
| 292 | Base64::encode( |
|
| 293 | sprintf('%s:%s', $this->provider->getClientId(), $this->provider->getSecret()) |
|
| 294 | ) |
|
| 295 | ), |
|
| 296 | ]; |
|
| 297 | } |
|
| 298 | ||
| 299 | $response = $this->httpClient->send( |
|
| 300 | Request::post( |
|
| @@ 352-361 (lines=10) @@ | ||
| 349 | ||
| 350 | $requestHeaders = []; |
|
| 351 | // if we have a secret registered for the client, use it |
|
| 352 | if (!is_null($this->provider->getSecret())) { |
|
| 353 | $requestHeaders = [ |
|
| 354 | 'Authorization' => sprintf( |
|
| 355 | 'Basic %s', |
|
| 356 | Base64::encode( |
|
| 357 | sprintf('%s:%s', $this->provider->getClientId(), $this->provider->getSecret()) |
|
| 358 | ) |
|
| 359 | ), |
|
| 360 | ]; |
|
| 361 | } |
|
| 362 | ||
| 363 | $response = $this->httpClient->send( |
|
| 364 | Request::post( |
|