Ejemplo n.º 1
0
 /**
  * @return TokenResponse
  */
 public function send()
 {
     $url = $this->serverConfig->getParams()['token_endpoint'];
     $response = $this->httpClient->request('POST', $url, ['multipart' => $this->getParams(), 'auth' => [$this->clientConfig->getParams()['client_id'], $this->clientConfig->getParams()['client_password']]]);
     return new TokenResponse($response);
 }
Ejemplo n.º 2
0
 /**
  * @return TokenResponse
  */
 public function send()
 {
     $url = $this->serverConfig->getParams()['token_endpoint'];
     $response = $this->httpClient->request('POST', $url, ['multipart' => $this->getParams()]);
     return new TokenResponse($response);
 }
Ejemplo n.º 3
0
 /**
  * @return string
  */
 private function getTokenEndpoint()
 {
     return vsprintf('%s%s', [$this->httpClient->getConfig('base_uri'), $this->serverConfig->getParams()['token_endpoint']]);
 }
Ejemplo n.º 4
0
 /**
  * @return string
  */
 private function getTokenEndpoint()
 {
     return vsprintf('%s%s', [$this->apiBaseUrl, $this->serverConfig->getParams()['token_endpoint']]);
 }