Skip to content

Commit

Permalink
Ajuste no arquivo de oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
MortoMS committed Sep 26, 2022
1 parent 7739f83 commit e0d0eac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/API/OauthApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ public function gerarAccessToken()

if ($this->config->isModoProducao()) {
if ($this->config->getPathCertificado() !== null && $this->config->getPathPrivateKey() !== null) {
$options[] = [
'cert' => $this->config->getPathCertificado(),
'ssl_key' => $this->config->getPathPrivateKey()
];
$options['cert'] = $this->config->getPathCertificado();
$options['ssl_key'] = $this->config->getPathPrivateKey();
} else {
throw new ApiException(
"* Modo Producao: Path p/ Certificado e path p/ Private Key obrigatorio.",
Expand All @@ -88,7 +86,6 @@ public function gerarAccessToken()
}

try {

$response = $this->client->request(
'POST',
$this->config->getUrlOAuth(),
Expand Down

0 comments on commit e0d0eac

Please sign in to comment.