fix(vikon): use form-encoded POST + correct domain for OAuth token exchange
- HttpTask::post() now sends application/x-www-form-urlencoded (not JSON) - AuthenticateAction sends to db-nica.ru (not auth.db-nica.ru) matching original vikon_core - Original code: remoteRequest($apiDomen . 'oauth2/authorize/token', ...)
This commit is contained in:
@@ -24,7 +24,7 @@ class HttpTask
|
||||
public function post(string $endpoint, array $data = [], string $service = 'api'): \Illuminate\Http\Client\Response
|
||||
{
|
||||
$url = $this->url($endpoint, $service);
|
||||
return $this->client()->post($url, $data);
|
||||
return $this->client()->asForm()->post($url, $data);
|
||||
}
|
||||
|
||||
public function getWithToken(string $endpoint, string $token, string $service = 'api'): \Illuminate\Http\Client\Response
|
||||
|
||||
Reference in New Issue
Block a user