zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

Lack of support for authorization with password #423

Closed Makinami closed 4 months ago

Makinami commented 5 years ago

(It is really a continuation of #1 issue, but that one was closed so long ago that no one might have seen my comment and so I'm creating a new one)

As in the title, currently package does not support authentication by password.

The package supports two authentication modes: basic and oauth. However, basic accepts only username/api token pair and append '/token' to username before creation Authorization header.

I propose allowing as the second parameter to setAuth arrays containing also password instead of token so the following two would work:

$client->setAuth('basic', ['username' => $username, 'token' => $token]);
$client->setAuth('basic', ['username' => $username, 'password' => $password]);
ecoologic commented 5 months ago

Hi,

thank you for your request, are you still interested in a solution for this issue?

ecoologic commented 4 months ago

Closing due to inactivity. Re-open if needed.