| @@ 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( |
|
| @@ 389-398 (lines=10) @@ | ||
| 386 | ||
| 387 | $requestHeaders = []; |
|
| 388 | // if we have a secret registered for the client, use it |
|
| 389 | if (!is_null($this->provider->getSecret())) { |
|
| 390 | $requestHeaders = [ |
|
| 391 | 'Authorization' => sprintf( |
|
| 392 | 'Basic %s', |
|
| 393 | Base64::encode( |
|
| 394 | sprintf('%s:%s', $this->provider->getClientId(), $this->provider->getSecret()) |
|
| 395 | ) |
|
| 396 | ), |
|
| 397 | ]; |
|
| 398 | } |
|
| 399 | ||
| 400 | $response = $this->httpClient->send( |
|
| 401 | Request::post( |
|