Is it possible to connect to an API with windows Credentials?
I need to connect on an API witch uses Windows AD authentication.
I thought thats works with
auth_basic but it’s not the good way…
Thanks by advance for your answers
$httpClient = HttpClient::create([ 'auth_basic' => ['username', 'password'] ]); $response = $httpClient->request('GET', 'https://apiURL', [ 'headers' => ['accept' => 'text/plain'], ]); dump($response->getStatusCode()); dump($response);
Source: Symfony Questions
Was this helpful?
0 / 0