Symfony 5 httpClient Windows AD connection

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'],

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *